Skip to content

Commit 20fbd3b

Browse files
authored
Revert "Fix spawn calls to use Windows path quoting (#17020)" (#17044)
This reverts commit 952a5f7.
1 parent 67e60de commit 20fbd3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/platform/common/process/proc.node.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
import { logProcess } from './logger.node';
2323
import { noop } from '../utils/misc';
2424
import { dispose } from '../utils/lifecycle';
25-
import { fileToCommandArgument } from '../helpers';
2625

2726
export class BufferDecoder implements IBufferDecoder {
2827
public decode(buffers: Buffer[]): string {
@@ -81,7 +80,7 @@ export class ProcessService implements IProcessService {
8180

8281
public execObservable(file: string, args: string[], options: SpawnOptions = {}): ObservableExecutionResult<string> {
8382
const spawnOptions = this.getDefaultOptions(options);
84-
const proc = spawn(fileToCommandArgument(file), args, spawnOptions);
83+
const proc = spawn(file, args, spawnOptions);
8584
let procExited = false;
8685
logger.ci(`Exec observable ${file}, ${args.join(' ')}`);
8786
const disposables: IDisposable[] = [];
@@ -156,7 +155,7 @@ export class ProcessService implements IProcessService {
156155
}
157156
public exec(file: string, args: string[], options: SpawnOptions = {}): Promise<ExecutionResult<string>> {
158157
const spawnOptions = this.getDefaultOptions(options);
159-
const proc = spawn(fileToCommandArgument(file), args, spawnOptions);
158+
const proc = spawn(file, args, spawnOptions);
160159
const deferred = createDeferred<ExecutionResult<string>>();
161160
const disposable: IDisposable = {
162161
dispose: () => {

0 commit comments

Comments
 (0)