[Code]: remove hard code node heapsize (#38304)
This commit is contained in:
parent
29e7d63db9
commit
3b099c6359
|
@ -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());
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue