[Code]: remove hard code node heapsize (#38304)

This commit is contained in:
Fuyao Zhao 2019-06-06 14:13:22 -07:00 committed by GitHub
parent 29e7d63db9
commit 3b099c6359
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,15 +43,11 @@ export class TypescriptServerLauncher extends AbstractLauncher {
});
}
async spawnProcess(installationPath: string, port: number, log: Logger): Promise<ChildProcess> {
const p = spawn(
process.execPath,
['--max_old_space_size=4096', installationPath, '-p', port.toString(), '-c', '1'],
{
detached: false,
stdio: 'pipe',
cwd: resolve(installationPath, '../..'),
}
);
const p = spawn(process.execPath, [installationPath, '-p', port.toString(), '-c', '1'], {
detached: false,
stdio: 'pipe',
cwd: resolve(installationPath, '../..'),
});
p.stdout.on('data', data => {
log.stdout(data.toString());
});