shanalikhan / code-settings-sync

🌴💪 Synchronize your Visual Studio Code Settings Across Multiple Machines using GitHub GIST 💪🌴
https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync
MIT License
4.02k stars 390 forks source link

Very high CPU usage #1352

Open samheutmaker opened 2 years ago

samheutmaker commented 2 years ago

This extension is causing the VSCode electron instance to use a lot of CPU. I have no more info.

arbassic commented 2 years ago

I noticed that too. It was also very hard to find out what extension caused about 50% CPU usage even when idle/no project opened. VSCode profiling through code --status shown nothing 😬


VS Code has its own settings synchronization for quite a while, so I think it is suggested to uninstall the extension for good.

gabyx commented 2 years ago

Yes, I ve seen the same here. Its the rigth extension which causes this.

gabyx commented 2 years ago

When you enable it will instantly jump to 50-100%

DercilioFontes commented 2 years ago

Same here.

Turning off and turning on! Screen Shot 2022-06-14 at 12 15 03 PM

OS: macOS Monterey 12.4 VS Code: Version: 1.68.0

Processes with high usage:

dercilio  9080 188.7  0.7 447914208 226240   ??  S    12:21pm   1:58.08 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node --inspect-port=0 /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork --type=extensionHost --skipWorkspaceStorageLock
dercilio  9454   0.0  0.0 408637584   1792 s001  S+   12:40pm   0:00.00 grep --color=auto 9080
dercilio  9209   0.0  0.2 447073440  60704   ??  S    12:22pm   0:00.30 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=9080
douira commented 2 years ago

I can also confirm this, it only happens when this specific extension is enabled. Since VSCode already has this feature itself now, I've just uninstalled it. However, it would be nice if this bug could be fixed in this extension too.

gnomeria commented 2 years ago

I just did a vscode bisect, and pin down the incredible slowdown from my vscode is supposed to be this extension. Especially if I open multiple windows.

yayzann commented 2 years ago

Has anyone checked the processes/what they're communicating with?

JIAZHEN commented 2 years ago

+1 for high CPU usage. I have to disable this extension. Any fix?

delongGao commented 2 years ago

This has been an issue for me as well, have to disable it for now.

sammcj commented 1 year ago

It looks like there's a PR to fix it that needs to be merged - https://github.com/shanalikhan/code-settings-sync/pull/1379