-
Notifications
You must be signed in to change notification settings - Fork 28k
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
VSCode disable large folders warning #31188
Comments
I have this issue as well. VS code is showing this warning up to 5 times as I open the project and start skimming through files it's extremely annoying. I have node_modules and the bundles excluded in the jsconfig as mentioned by other bug reports but it's still happening. |
Encountering to exact same issues. Excluding node_modules and other larger directories (dist, static, etc) does nothing. Warning persists. |
This warning means that TypeScript has disabled itself after trying to include too many files. After adding the excludes, did you restart VSCode? Can you try looking in the TSServer log to see what files are being included:
In the log file, look for blocks where file names are listed. For example:
Glance through these files and see if there are any unexpected files being included. Please share your |
Thanks @mjbvz I reproduced it and it looks like it's including node_modules
Despite my jsconfig.json declaring otherwise:
Any ideas on why it's not excluded? |
I got it, node_modules is not root to my project. I think there's a misunderstanding on my part in how exclude decides to match the folder. I thought "node_modules" would exclude any folder or file named node_modules, regardless of depth to jsconfig.json. I think to correct this confusion, the example in the documentation here: https://code.visualstudio.com/docs/languages/jsconfig should either
|
Thanks, I believe you are running into this bug: microsoft/TypeScript#12750 Try changing you exclude to |
I've updated the docs: microsoft/vscode-docs@4834f95 Let me know if you still see this issue after using the glob exclude for |
Looks this worked for me as well. |
I'm also receiving this warning regularly, but it does not seem to be actionable for me. Our project has ~2400 JS files, not including any 3rd party code. I turned on verbose mode and verified that Is TS Server just not able to handle this number of files? (For what it's worth, these are all source files; there are no bundles included in the glob.) Any help would be appreciated. Thanks! |
With the glob exclude for node_modules I was still having this issue with every .js file that I opened. What eventually resolved it was updating jsconfig.json to exclude another large folder (~300 files) that I already had excluded in settings.json. I expected settings.config exclusions to take precedence, then apply jsconfig.json exclusions, but it appears that's not the case. |
VSC 1.17.2 To enable project-wide JavaScript/TypeScript language features, exclude large folders with source files that you do not work on. My jsconfig.js
|
Is there a way to disable the "To enable project-wide JavaScript/TypeScript language features, exclude large folders with source files that you do not work on." warning as it is displayed on each opening of files? I have configured jsconfig.json excluding folders such as node_moduels, but my source files are in the range of thousands. I couldnt find such option in the preferences so I guess it is a typescript option?
The text was updated successfully, but these errors were encountered: