Skip to content

Commit c11a2dd

Browse files
authored
fix: cwd not escaping when running wt.exe externally (microsoft#206114)
We actually already set the cwd when spawning wt.exe, so we can use just `.` to reference it and avoid dealing with escaping entirely.
1 parent b8d6cdc commit c11a2dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/externalTerminal/node/externalTerminalService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class WindowsExternalTerminalService extends ExternalTerminalService impl
107107
// prefer to use the window terminal to spawn if it's available instead
108108
// of start, since that allows ctrl+c handling (#81322)
109109
spawnExec = wt;
110-
cmdArgs = ['-d', dir || '.', exec, '/c', command]; // default dir fixes #204039
110+
cmdArgs = ['-d', '.', exec, '/c', command];
111111
} else {
112112
spawnExec = WindowsExternalTerminalService.CMD;
113113
cmdArgs = ['/c', 'start', title, '/wait', exec, '/c', command];

0 commit comments

Comments
 (0)