-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
TypeScript slow project load times for large projects on MacOS #60832
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.2. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
After looking into this more deeply this may actually be a problem with either TypeScript or Node.JS's file watcher. The tsserver logs seem to indicate that it is marking every single source file the project contains or depends on as changed:
|
Another data point... so far i've only seen the bug present in projects which depend upon >18k TS files. For example, one of our projects has ~14.6k TS files it depends upon and there are NOT any phantom file watch events. I have also confirmed that this bug occurs in IntelliJ as well so it's not limited to VSCode. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
.vscode/settings.json
This causes:
The strange thing is that this is NOT a problem with
.vscode-server
running on Linux.None of the 20k+
Invoking sourceFileChange on...
log lines appear in the tsserver logs when running in our Linux based remote dev envs and the load time for this project is ~52s vs 3m45s!Interestingly the problem also does NOT occur on MacOS when tsserver reuses VSCode's file watcher (i.e. the
node_modules
excludes aren't in thefiles.watcherExclude
hash)The text was updated successfully, but these errors were encountered: