Don't use shell for spawning node (#213960)

Fixes #204678
This commit is contained in:
Matt Bierner
2024-05-30 17:08:47 -07:00
committed by GitHub
parent ca688da9fb
commit b1ecfe96b5
2 changed files with 2 additions and 3 deletions

View File

@@ -278,8 +278,7 @@ export class ElectronServiceProcessFactory implements TsServerProcessFactory {
}
const childProcess = execPath ?
child_process.spawn(JSON.stringify(execPath), [...execArgv, tsServerPath, ...runtimeArgs], {
shell: true,
child_process.spawn(execPath, [...execArgv, tsServerPath, ...runtimeArgs], {
windowsHide: true,
cwd: undefined,
env,

View File

@@ -234,7 +234,7 @@ export class TypeScriptServerSpawner {
tsServerLog = { type: 'file', uri: logFilePath };
args.push('--logVerbosity', TsServerLogLevel.toString(configuration.tsServerLogLevel));
args.push('--logFile', `"${logFilePath.fsPath}"`);
args.push('--logFile', logFilePath.fsPath);
}
}
}