mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 08:15:56 +01:00
Accept "Command produced no output" when shell integration is off (#303866)
Accept "Command produced no output" when shell integration is off (#303865)
This commit is contained in:
@@ -222,7 +222,13 @@ function extractTextContent(result: vscode.LanguageModelToolResult): string {
|
||||
const sep = isWindows ? ';' : '&&';
|
||||
const output = await invokeRunInTerminal(`echo ${m1} ${sep} echo ${m2} ${sep} echo ${m3}`);
|
||||
|
||||
assert.strictEqual(output.trim(), `${m1}\n${m2}\n${m3}`);
|
||||
// Without shell integration, idle polling may miss the
|
||||
// output on slow CI machines.
|
||||
const acceptable = [
|
||||
`${m1}\n${m2}\n${m3}`,
|
||||
...(!hasShellIntegration ? ['Command produced no output'] : []),
|
||||
];
|
||||
assert.ok(acceptable.includes(output.trim()), `Unexpected output: ${JSON.stringify(output.trim())}`);
|
||||
});
|
||||
|
||||
(isWindows ? test : test.skip)('&& operators are converted to ; on PowerShell', async function () {
|
||||
|
||||
Reference in New Issue
Block a user