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:
Ronak Jain
2024-01-10 00:32:53 +05:30
committed by GitHub
parent eae814bef6
commit c1bc5415f8
@@ -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,