-
Notifications
You must be signed in to change notification settings - Fork 218
v0.3.0-alpha-1 makes VSCode take 100% CPU #112
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
Comments
Hey @rik. Thanks for trying it out. When you say "all the time," is this happening even when you aren't interacting with the editor? Also please can you confirm that this is not happening after disabling the extension, and that it is happening with all other extensions disabled? There's a "Disable All Installed Extensions" command you can run from the command palette that might help with that. Also what OS are you using, and which version of VS Code? |
Without interacting: CPU spike VSCode details:
|
I can confirm (after toggling each extension in VSCode) that this is happening for me too - even with no file tabs open (just an active vscode workspace). Reverting to v0.2.0 fixes the problem. My output from
Aside from the high CPU, was loving the update! |
Thank you both for providing that info, it's really helpful! I reckon I might have tracked the issue down. I was seeing that the language service was running at ~10% CPU usage on my machine, even when the editor was idle (and in a very small example project), when really it should be ~0%. I made a change to the file watcher the other day which added The reason I think this is causing high CPU usage is because the watcher is potentially watching very large directory structures like So the quick fix for most users (I imagine) is to just add If you could bear with me for a day or two I will add this to the list for |
You're welcome, @bradlc - sounds like you've tracked it down 👍 |
I actually found another big issue with the file watching, which was that the fsevents binary was going missing in the build process. Fixing this should have made file watching much more efficient on macOS 🙌 The project I was getting ~10% CPU usage on was back down to 0% just by fixing the fsevents issue, but I have also changed which files get watched as I mentioned the other day. If you could try out the new release and let me know if it improves things that would be great, thanks! |
Morning @bradlc - sounds great. Looking forward to giving alpha.2 a try. I've installed it and will keep an eye on its CPU usage over the course the day. Thanks for the quick turnaround and thorough debug! |
Hey @bradlc - I've been using VSCode all morning (with alpha.2 installed) and my CPU % has hovered nicely between 0 - 3%. Looking good. Thanks! |
I can confirm this is gone for me too. Thanks for the quick turnaround! |
Thanks @rik @jeffchown 🙌 I'll close this, but please feel free to open a new issue if you see this again. |
I've installed the alpha to get the goodness from #58.
After installing it, I'm getting 100% CPU all the time. I realise this might not be very actionable as a bug report so I am happy to spend time getting you the logs that you need to investigate.
The text was updated successfully, but these errors were encountered: