vscode: High CPU usage when using multiple open editors (js/ts)
- VSCode Version: 1.22.1
- OS Version: OSX 10.11.6
Steps to Reproduce:
- Have multiple javascript/typescript projects open in multiple windows (I might have up to 6-7 open at a time), but this happens with 2 as well.
- Get very high CPU usage from “Code Helper”, switch between all the open VSCode windows and it stops, until the next time it happens.
Notes:
-
Landing on “the right” VSCode window always stops the problem. I think it’s pretty random, any window could cause the problem. But bringing focus to it stops the problem.
-
I have typescript watchers, webpack watchers, nodemon, stuff like that, running in the background, watching the same files the various vscode windows have open as well. I also have
"files.autoSave": "onFocusChange",
in the settings. -
After every version upgrade, I get the update notification a lot of times, in different instances of vscode, unexpectedly. For example I open a project and get the notification and dismiss it, a few days later I get it again and notice in the mac dock, there are two vscode icons instead of one (so 2 version running in parallel). Don’t know if it’s related, but here’s a screenshot of how it looks right now (2 instances, one without icon):

I found that one of the processes is launched from ~/Library/Caches/com.microsoft.VSCode.ShipIt/update.reIUiIT/Visual Studio Code.app/Contents/MacOS/Electron
.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 16 (3 by maintainers)
I found the culprit for the issue in my previous post: the extension “Auto Rename Tag” caused it. Uninstalled it and now everything’s fine 😃