-
Notifications
You must be signed in to change notification settings - Fork 28.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
"Initializing TS/JS language features" freezes app for too long on every restart. #65178
Comments
(Experimental duplicate detection) |
Looks like someone is running around closing issues EXACTLY describing this issue by claiming they don't have enough info. Just tell me how to shut it off. I would rather the entire app be a basic text editor than have that extension slow my machine down one iota. "typescript.validate.enable": false, Didn't work for me. |
I even tried some other solutions posted elsewhere such as changing my jsconfig.json to: |
I believe this was caused by some theme I had installed. While the loading time is still long, it has reduced enough where I believe it's nominal on my super slow old hardware. |
Same issue here. No themes installed. Version: 1.30.0 (user setup) |
It might be the Sublime-Babel extension I'm using, which my theme then uses. But I've not had the time to open the devtools and profile the whole thing. Try |
Doesn't that also disable the JS/TS Language features? |
I think the important take-away here is that something(?) is affecting performance and it is not easy or clear to find the culprit. You can selectively allow extensions while disabling the rest, narrowing it down, but what would be better is something that automatically warned you there might be a problem with X-extension because it's taking a long time to finish doing whatever. |
Same issue. Reverted to 1.25.1. |
After a very brief glance at the logs, my next guess is that the TS server launching is slowing some people's machines way down. |
here is how I fixed this issue : use procmon.exe to see what the code.exe is doing, in my machine it busy read/write files in a symbollink V2, so I delete the symblolink ( or exclude the symbolink in jsconfig.json) , restart code , then everything is fine. |
Can you (or anyone) post step by step instructions? Thanks. |
This is still reproducible as on Jan-25-2019 (I'm on debian).
Note: While the initialization is in progress, VS code is usable as a text editor, but anything associated with TS (imports / auto completion / cross reference / goto definition etc) do not work. |
I think there maybe some symbolic link cause infinity loop in your project folder, try exclude some folders in jsconfig.json |
Version: 1.30.0
Commit: c6e592b
Date: 2018-12-11T22:21:33.585Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Linux x64 4.13.0-43-generic
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: