提交 f781afbd 编写于 作者: D Daniel Imms

Allow externalTerminal.windowExec to work with spaces

Fixes #6590
上级 618fdc13
......@@ -32,7 +32,9 @@ export class WinTerminalService implements ITerminalService {
private spawnTerminal(spawner, configuration: ITerminalConfiguration, command: string, path?: string): TPromise<void> {
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<void>((c, e) => {
let env = path ? { cwd: path } : void 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册