Skip to content

Commit e8be60a

Browse files
authored
debug: fix launch using empty directory in external terminal (microsoft#205123)
Fixes microsoft#204039
1 parent a2c91f1 commit e8be60a

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];
110+
cmdArgs = ['-d', dir || '.', exec, '/c', command]; // default dir fixes #204039
111111
} else {
112112
spawnExec = WindowsExternalTerminalService.CMD;
113113
cmdArgs = ['/c', 'start', title, '/wait', exec, '/c', command];

0 commit comments

Comments
 (0)