mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
Fix tsserver crashing when using custom node path (#201966)
* use quotes in spawned process name * Use JSON stringify to handle quotes as well
This commit is contained in:
@@ -278,7 +278,7 @@ export class ElectronServiceProcessFactory implements TsServerProcessFactory {
|
||||
}
|
||||
|
||||
const childProcess = execPath ?
|
||||
child_process.spawn(execPath, [...execArgv, tsServerPath, ...runtimeArgs], {
|
||||
child_process.spawn(JSON.stringify(execPath), [...execArgv, tsServerPath, ...runtimeArgs], {
|
||||
shell: true,
|
||||
windowsHide: true,
|
||||
cwd: undefined,
|
||||
|
||||
Reference in New Issue
Block a user