[Code]: fix the problem we can't launch node subprocess in released binary (#37533)

This commit is contained in:
Fuyao Zhao 2019-05-30 16:26:07 -07:00 committed by GitHub
parent 35a5919b02
commit cf72561eca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ export class TypescriptServerLauncher extends AbstractLauncher {
}
async spawnProcess(installationPath: string, port: number, log: Logger): Promise<ChildProcess> {
const p = spawn(
'node',
process.execPath,
['--max_old_space_size=4096', installationPath, '-p', port.toString(), '-c', '1'],
{
detached: false,