Skip to content

Commit b36afc8

Browse files
authored
Use taskkill for win32 (#936)
* Use taskkill for win32 * Use spawn + taskkill in windows * Revert to using tree-kill
1 parent 9feabde commit b36afc8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/util.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -411,13 +411,7 @@ export function asDisposable<T>(toDispose: T, disposeFunction: (...args: unknown
411411

412412
export type DisposableProcess = cp.ChildProcessWithoutNullStreams & vscode.Disposable;
413413
export function exec(command: string, args?: ReadonlyArray<string>, options?: cp.CommonOptions, onDisposed?: () => unknown): DisposableProcess {
414-
let proc: cp.ChildProcess;
415-
if (process.platform === 'win32') {
416-
const cmd = `"${command}" ${args.map(s => `"${s}"`).join(' ')}`;
417-
proc = cp.exec(cmd, options);
418-
} else {
419-
proc = cp.spawn(command, args, options);
420-
}
414+
const proc = cp.spawn(command, args, options);
421415
let running = true;
422416
const exitHandler = () => {
423417
running = false;

0 commit comments

Comments
 (0)