-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
Code Helper is overloading CPU #11096
Comments
Seems like a duplicate of #9572 |
@bpasero assigning to you. I saw that you had similar issues as well. @johanbove could you please provide the command line of the Code Helper process causing the high CPU usage. And can you reproduce this without having any extension installed. |
Thanks for the follow up @dbaeumer ! Perhaps this folder should be added per default? |
@johanbove is there something in that folder that you would need to be notified about? Disabling file events has consequences, e.g. the explorer not updating if something changes within. Do bower developers typically hide this folder from the explorer? |
@johanbove actually is bower_components comparable to node_modules for node.js? |
@bpasero Yes, in a way the bower_components is similar as when used in a project it contains third-party tools and libraries which are "imported" into a project. Bower is also a package manager: https://bower.io/ I'm not sure what Code Helper actually does, so unless a developer is working on a particular bower_component itself, I assume VSCode should not watch this folder for changes. |
Update: I'm having the issue with the high CPU load again even-though so it looks like excluding the "bower_components" folder does not resolve the issue. How can Code Helper be analyzed to get details on what is it crunching on so intensively? I have these extensions installed (
|
@johanbove first thing is to find out the arguments of this process, e.g. is this really the file watcher or not. Can you provide this details? |
@bpasero How do I get the arguments of the running process through Activity Monitor? |
@johanbove from the command line " |
OK, started VSCode without extensions active with |
Output for the arguments command; Code Helper PID 5205 raises CPU % over 100;
|
But it went down again now... :-) Will keep an eye out for a Code Helper process which stays over 100% for longer periods and will report back here. Now that I know how to report this it'll be more helpful for sure. |
@johanbove it is actually pretty easy: if you open VS Code on a large workspace, the file watcher has to walk each and every folder and file within. This causes high CPU spikes right on startup, independent from extensions. The only way to get this down is to set the Eventually though the CPU spike goes down and stays low. If you see this NOT happening, it defnitley is unexpected. |
I pinpointed the CPU load issue to the extension: "glen-84.sass-lint-0.0.1"; Will contact the author of the plugin.
|
For future reference: here is the issue posted in the "sass-lint" project: glen-84/vscode-sass-lint#2 |
Thanks 👍 |
+1.
|
Excluding bower/node/jspm folders could help: Code -> Preferences -> User Settings
Otherwise can try using a different extension, this one seems to work: See difference between them in performance: |
The issue with the sass-lint extension should be fixed in v0.0.4. Apologies for the inconvenience. |
Thanks for fixing this! 👍 |
I started experiencing this as well after installing the recent "Angular Language Service" extension. Removed it for now and things seem to be back to normal. |
The same issue happens using |
I'm seeing this issue as well with the latest VS Code. Here's what I have for extensions: Does anyone know if any of these extensions cause the CPU to make Code Helper spike to 100%? |
I'm still seeing this. |
Just experience the same problem. Comparing my extensions to @nickytonline list
|
I experience this problem most days. At this point all my extensions are disabled. 4 are installed but all are disabled:
|
Update, I tracked my issue down to Code Spell Checker and a really large seed-data JSON file. Disabling Code Spell Checker solved my issues. To be fair to Code Spell Checker and @Jason-Rev, CSpell is a great extension. So the next step is to disable spell checking for targeted files. |
@cklanac Thank you! That gives me a place to start looking. |
@cklanac can you open a new issue here: https://github.com/Jason-Rev/vscode-spell-checker/issues/ with some details about your setup. Can you include things:
Thank you. |
I don't have vs code open, and code helper is still eating my battery. Shouldn't this process close when i close vs code? |
Running VSC beta its constantly up 100% cpu until the computer becomes so slow that i can't type and click any longer. |
Steps to Reproduce:
ActivityMonitor analysis .txt file: https://www.dropbox.com/s/0zrsjo7c1aas4qs/ActivityMonitorCodeHelperAnalysis.txt?dl=0
The text was updated successfully, but these errors were encountered: