Skip to content
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

Visual Studio Code 100%+ CPU Percentage #2050

Closed
Bgallahue opened this issue Mar 4, 2020 · 4 comments
Closed

Visual Studio Code 100%+ CPU Percentage #2050

Bgallahue opened this issue Mar 4, 2020 · 4 comments

Comments

@Bgallahue
Copy link

Summary

Having issues with my computer sounding like a jet leaving the runway every 10/15 minutes while working in VSC (brand new Macbook Pro is the computer so this likely isnt the issue). I've identified what is causing it (with Activity Monitor) and it is Code Helper (Renderer) Process running at over 100% CPU for minutes at a time. I'm not doing anything i haven't done before, just coding some LWC. Diving a little deeper using "ps aux | grep XXX" in the terminal to return the specific extension causing the issue and i found it was:

lwc-language-server within the Salesforce DX extension. I have no idea how to disable this or whether it is possible but wondering if anyone else has had this issue, its driving me nuts

Full process name that is behind the 100% CPU

/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer) /Users/USERNAME/.vscode/extensions/salesforce.salesforcedx-vscode-lwc-48.1.0/node_modules/lwc-language-server/lib/server.js --node-ipc --clientProcessId=XXX

Note: XXX is the PID or Process Id # in case anyone else is having the issue

Steps To Reproduce:

  1. Code a LWC

Expected result

It should not use 105% CPU every 10 minutes for 2/3 minutes

Actual result

Very high CPU usage, fan going full blast

Additional information

Have completely installed Mac OS Catalina from scratch

VS Code Version:

Version: 1.42.1

SFDX CLI Version:

48.4.0

OS and version:

MacOS Catalina 10.15.3

@ntotten ntotten changed the title Visual Studio Code 100%+ CPU Percentage - Salesforce Extension is the culprit, fix? Visual Studio Code 100%+ CPU Percentage Mar 30, 2020
@git2gus
Copy link

git2gus bot commented Mar 30, 2020

This issue has been linked to a new work item: W-7387181

@lcampos
Copy link
Contributor

lcampos commented Sep 10, 2020

Closing this since a few weeks ago we released a new implementation of the LWC language server that addresses this issue. Thanks for the feedback.

@lcampos lcampos closed this as completed Sep 10, 2020
@richardrmwd
Copy link

This issue is happening to me now

@zix66
Copy link

zix66 commented Feb 28, 2022

me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants