-
Notifications
You must be signed in to change notification settings - Fork 214
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
VSCode extension is high on CPU usage #2202
Comments
Hello! |
Just to add to this report, I'm also seeing the same issue when left open for a while. I'm also having it crash the Typescript language server outright a lot. I had to disable the extension entirely. |
could you add your nx report and some details about your workspace? size for example. |
This is a large repo of about 65 projects |
I noticed the same issue as @jasonmacdonald explained on my side.
|
I have the same issue. Macbook M1 |
Having the same issue on a M1 Pro. Plus I notice that when stopping a task the node process in the activity monitor is still left running. Refreshing the workspace does clear them up again. |
I'm having issues with TS lang server either, always have to disable the extension when finished using it.
NX Report:
About VS Code:
|
please double check that you're on the latest nx console version, we've just released some fixes for the ts language server. |
Me too. I had to uninstall the extension lately as it slows down the editor. |
@demirtasdurmus can you provide some logs from the |
When the process encounters an error such as when I'm modifying project.json because I saved the file it seems that nx reloads the workspace At this point, nx notifies me that it is duplicating the workspace root registration. Then I exited the whole vscode and checked the process by ps -ef and found that many of the processes for the graph parameter had not been closed and the vscode plugin that had started the plugin before had not been launched. |
Can you elaborate what this means?
Btw, we just fixed an error with spawning plugin workers in Nx, be sure to update to the latest version :) |
Could you provide some logs and more information?
Thank you :) |
Report Files: https://gist.github.com/StringKe/ccc3a37b58bbdd2954b289b702721563 Plugin Version: v18.31.1
30/11/24: Some processes started by nx don't seem to be able to exit synchronously with cursor exit. Nxls Client - idle
Telemetry: production
Nxls Client - idle
Nxls Client - starting
Graph Machine - undefined, {"context":{"state":"init","project":null,"error":null},"event":{"type":"xstate.init"},"self":{"xstate$$type":1,"id":"x:0"},"system":{"_snapshot":{"_scheduledEvents":{}},"scheduler":{},"_clock":{}}}
Graph - init
Nxls Client - running
Enabling TypeScript plugin for workspace /Users/chen/Project/Company/SansoniManagement/workspace
Configuring TypeScript plugin
Nxls process exited, stopping client.
Nxls Client - stopping
Nxls Client - idle ps -ef | grep nx
501 4598 1 0 五02下午 ?? 759:52.11 /Users/chen/.local/share/mise/installs/node/22.5.1/bin/node /Users/chen/Project/Company/SansoniManagement/workspace/node_modules/.bin/nx run aic-web:dev:serve
501 53629 53325 0 4:40下午 ttys010 0:00.00 grep --color=auto nx |
Current Behavior
The VSCode extension for NX Console is utilising >100% CPU, constantly. When investigating what are behind these heavy pids, it is:
/extensions/nrwl.angular-console-18.24.1/nxls/main.js
/extensions/nrwl.angular-console-18.21.4/nxls/main.js
It also seems that these processes continue to run regardless of killing VSCode or disabling the NX extension.
As a result, this significantly drains battery life when using vsc with the NX console extension.
Expected Behavior
Less CPU usage.
Steps to Reproduce
Failure Logs / Images / Videos
CPU usage in
Activity Monitor
After killing those processes:
Environment
The text was updated successfully, but these errors were encountered: