From 515cb81439aedfe9025cbfac08bbf5a4b87be479 Mon Sep 17 00:00:00 2001 From: Ara Date: Wed, 26 Nov 2025 11:05:10 -0800 Subject: [PATCH] fix(terminal): simplify cmd.exe command arguments (#7695) Remove /s flag and extra quoting from cmd.exe shell arguments. The previous approach with /s /c and quoted command was causing issues with proper command execution in Windows cmd.exe. --- standalone/runtime-files/vscode/enhanced-terminal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/standalone/runtime-files/vscode/enhanced-terminal.js b/standalone/runtime-files/vscode/enhanced-terminal.js index 3c12ddc1..ed333556 100644 --- a/standalone/runtime-files/vscode/enhanced-terminal.js +++ b/standalone/runtime-files/vscode/enhanced-terminal.js @@ -200,8 +200,7 @@ class StandaloneTerminalProcess extends EventEmitter { if (shell.toLowerCase().includes("powershell") || shell.toLowerCase().includes("pwsh")) { return ["-Command", command] } else { - // Use /s /c with quoted command for proper quote handling in cmd.exe - return ["/s", "/c", `"${command}"`] + return ["/c", command] } } else { // Use -l for login shell, -c for command