We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e96ab81 commit eb17fc8Copy full SHA for eb17fc8
1 file changed
src/vs/base/node/processes.ts
@@ -321,14 +321,14 @@ export abstract class AbstractProcess<TProgressData> {
321
private useExec(): Promise<boolean> {
322
return new Promise<boolean>((c, e) => {
323
if (!this.shell || !Platform.isWindows) {
324
- c(false);
+ return c(false);
325
}
326
let cmdShell = cp.spawn(getWindowsShell(), ['/s', '/c']);
327
cmdShell.on('error', (error: Error) => {
328
- c(true);
+ return c(true);
329
});
330
cmdShell.on('exit', (data: any) => {
331
332
333
334
@@ -470,4 +470,4 @@ export namespace win32 {
470
471
return path.join(cwd, command);
472
473
-}
+}
0 commit comments