diff --git a/src/vs/workbench/parts/execution/electron-browser/terminalService.ts b/src/vs/workbench/parts/execution/electron-browser/terminalService.ts index 4fb5557836d135e1de3eb9c6f944bc03a58eae58..927a0fb3cbc9643ebbd4dfce3a2553227a504062 100644 --- a/src/vs/workbench/parts/execution/electron-browser/terminalService.ts +++ b/src/vs/workbench/parts/execution/electron-browser/terminalService.ts @@ -32,7 +32,9 @@ export class WinTerminalService implements ITerminalService { private spawnTerminal(spawner, configuration: ITerminalConfiguration, command: string, path?: string): TPromise { let terminalConfig = configuration.externalTerminal; let exec = terminalConfig.windowsExec || DEFAULT_TERMINAL_WINDOWS; - let cmdArgs = ['/c', 'start', '/wait', exec]; + // The '""' argument is the window title. Without this, exec doesn't work when the path + // contains spaces + let cmdArgs = ['/c', 'start', '/wait', '""', exec]; return new TPromise((c, e) => { let env = path ? { cwd: path } : void 0;