-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass max_old_space_size to TSServer #33524
Comments
I gave this a shot but was unable to get it working even when using a production build of VS Code. Looks like this is blocked by: electron/electron#10413 electron/electron#9693 |
@mjbvz I'm running into the same issue. Our project has to It looks like both Electron issues are resolved, so is this issue now unblocked? It would be great if |
@MLoughry Can you try making the change and submit a PR if it works? Here's the code where we spawn the tsserver process:
|
I'll try to set up an enlistment today/tomorrow and try adding a hard-coded value to see if it works. If it does, do you have a quick pointer on where the guide/code to add a new setting would be? |
To verify:
|
Works as specified and I can see that tsserver is started with --max-old-space-size=4000/128 through htop |
Per discussion here: microsoft/TypeScript#18055
Some things I noticed while looking into this:
--max_old_space_size
or--max-old-space-size
works, v8 args can be dashes or underscores. Underscores work for sure.global.gc
is available, so maybe consider adding--expose-gc
as well.4096
./script/code.sh
script, setting these flags inexecArgv
options intypescriptserviceclient.ts
had no effect.I think it'll work if Electron is packaged and ran normally, but I'm not positive.The text was updated successfully, but these errors were encountered: