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
When opening large JS project intellisense stops working after receing an error notification
"To enable project-wide JavaScript/TypeScript language features, exclude large folders with source files that you do not work on.". My project contains of around 11k JS files (excluding node_modules - just project files) - around 50MB of source code.
I have excluded any large external forlders in my jscondig.json
tsserver.log doesn't show anything suspicious - just tons of watchers for files I would expect they should be there. No errors or whatsoever. I've seen tons of reports like this but without any real answers what is going on and how to fix it (#31188, microsoft/vscode#9594, microsoft/vscode#35549 to just point a few). There is a TS server issue reference in microsoft/vscode#35549 - to a max non TS file size limit hardcoded at 20MB. Is this the case? Can vscode handle projects larger that 20MB in total size??
For VS Code to analyze a project, the total size of JS under analysis generally needs to be under 20 MB. You can create jsconfig.json files in subdirectories to limit the scope of analysis to smaller chunks that fit in available memory, or turn off the JS language service altogether if that isn't an option for you.
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
IllusionMH commentedon Sep 27, 2019
Maciej Dragan (@drkn) you can check this comment first and then this one
This is still on my to-do list and I was planning to prepare draft next week.
drkn commentedon Sep 27, 2019
Thanks, but in my case adding
(intellisense doesn't work at all then).
disableSizeLimit: truetojsconfig.jsonends up in endlessRyanCavanaugh commentedon Oct 14, 2019
For VS Code to analyze a project, the total size of JS under analysis generally needs to be under 20 MB. You can create
jsconfig.jsonfiles in subdirectories to limit the scope of analysis to smaller chunks that fit in available memory, or turn off the JS language service altogether if that isn't an option for you.typescript-bot commentedon Oct 19, 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.