Skip to content

Commit 838f5bf

Browse files
committed
Remove multi-line hint from terminal tool desc
Part of microsoft#262386
1 parent f2529aa commit 838f5bf

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ function createPowerShellModelDescription(shell: string): string {
9494

9595
const genericDescription = `
9696
Command Execution:
97-
- Does NOT support multi-line commands
9897
- Use && to chain simple commands on one line
9998
- Prefer pipelines | over temporary files for data flow
10099

src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/electron-browser/treeSitterCommandParser.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ suite('TreeSitterCommandParser', () => {
9090
test('mixed quote types', () => t('echo "hello \`world\`" && echo \'test\'', ['echo "hello \`world\`"', 'world', 'echo \'test\'']));
9191
test('deeply nested structures', () => t('echo $(echo $(echo $(echo nested))) && ls', ['echo $(echo $(echo $(echo nested)))', 'echo $(echo $(echo nested))', 'echo $(echo nested)', 'echo nested', 'ls']));
9292
test('unicode command names', () => t('测试命令 && echo done', ['测试命令', 'echo done']));
93+
test('multi-line', () => t('echo a\necho b', ['echo a', 'echo b']));
9394
});
9495

9596
// TODO: These should be common but the pwsh grammar doesn't handle && yet https://github.com/microsoft/vscode/issues/272704

0 commit comments

Comments
 (0)