mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
on windows, honor comspec env variable when spawning a shell
This commit is contained in:
@@ -13,6 +13,7 @@ import {IConfigurationService} from 'vs/platform/configuration/common/configurat
|
||||
import {IMessageService} from 'vs/platform/message/common/message';
|
||||
|
||||
import cp = require('child_process');
|
||||
import processes = require('vs/base/node/processes');
|
||||
|
||||
export class WinTerminalService implements ITerminalService {
|
||||
public serviceId = ITerminalService;
|
||||
@@ -24,7 +25,7 @@ export class WinTerminalService implements ITerminalService {
|
||||
}
|
||||
|
||||
public openTerminal(path: string): void {
|
||||
cp.spawn('cmd.exe', ['/c', 'start', '/wait'], { cwd: path });
|
||||
cp.spawn(processes.getWindowsShell(), ['/c', 'start', '/wait'], { cwd: path });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user