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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
}
}
}