You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarify, this is not due to misconfiguring excludes:
I'm working on one of repo currently have about 6500 js + jsx + ts + tsx files and it'll likely to grow over. Even exclude unnecessary files as much, vs code keep displaying same notification and would like to disable it, or either way to increase maximum files tsserver can handle to avoid.
OJ Kwon (@kwonoj) Can you please share more information about your general project structure. As a starting point, with your workspace open in VS Code, run code --status from the command line and share the output.
That notification means that intellisense will not work properly, so we'd like to understand why it shows up in the first place instead of just hiding it
I will issue my standard warning that that message is in place because generally TS Server will crash due to running out of memory when analyzing that much code at once, so simply turning off the warning and proceeding will likely result in a loop of TS Server trying to analyze everything, crashing, and restarting. But if it works for you anyway - carry on!
I will issue my standard warning that that message is in place because generally TS Server will crash due to running out of memory when analyzing that much code at once, so simply turning off the warning and proceeding will likely result in a loop of TS Server trying to analyze everything, crashing, and restarting.
Thanks for heads up - this is actually living concern for us. But also working on large-scale codebase we don't have lot of options as well. What'd be recommended way to scale up tsserver to deal with those large amount of files (without warning)? in a long run we'd like to split project into project references, but that won't going to happen soon.
This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow.
Activity
mjbvz commentedon Aug 13, 2019
OJ Kwon (@kwonoj) Can you please share more information about your general project structure. As a starting point, with your workspace open in VS Code, run
code --statusfrom the command line and share the output.That notification means that intellisense will not work properly, so we'd like to understand why it shows up in the first place instead of just hiding it
AnyhowStep commentedon Aug 13, 2019
I wonder what the upper limit for number of files is?
I'm currently at
2492.tsfiles in mysrcdirectory.The
Workspace Stats,kwonoj commentedon Aug 13, 2019
Matt Bierner (@mjbvz)
Open to provide tsserver trace or some more detail, but cannot attach in here as this is private repo.
IllusionMH commentedon Aug 13, 2019
Have you tried to set
"disableSizeLimit": trueinsidecompilerOptionsintsconfig.json(or injsconfig.jsonif you use it)?kwonoj commentedon Aug 13, 2019
Andrii Dieiev (@IllusionMH) omg I just learned those option and it seems it makes notification go away, thx for tips.
Should I close issue? I think so as it's controllable at least.
IllusionMH commentedon Aug 13, 2019
Same here: I accidentally found it couple month ago.
Matt Bierner (@mjbvz) maybe it make sense to update https://code.visualstudio.com/Docs/languages/javascript "Common questions" section to describe steps how to deal with this error?
How to exclude large folders and then
disableSizeLimitafter common large folders are excluded.I will create suggestions and PR in vscode-docs if needed.
mjbvz commentedon Aug 13, 2019
That sounds like a good idea. Here's the relevant repo: https://github.com/microsoft/vscode-docs/blob/master/docs/typescript/typescript-compiling.md
Would you like to submit a docs PR that adds that section?
IllusionMH commentedon Aug 13, 2019
Yes, will do if no one will do it before me.
RyanCavanaugh commentedon Aug 14, 2019
Glad you found the setting!
I will issue my standard warning that that message is in place because generally TS Server will crash due to running out of memory when analyzing that much code at once, so simply turning off the warning and proceeding will likely result in a loop of TS Server trying to analyze everything, crashing, and restarting. But if it works for you anyway - carry on!
kwonoj commentedon Aug 14, 2019
Ryan Cavanaugh (@RyanCavanaugh)
Thanks for heads up - this is actually living concern for us. But also working on large-scale codebase we don't have lot of options as well. What'd be recommended way to scale up tsserver to deal with those large amount of files (without warning)? in a long run we'd like to split project into project references, but that won't going to happen soon.
typescript-bot commentedon Aug 18, 2019
This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow.