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

Causing high cpu load on Apple silicon #221

Open
captain-rocket opened this issue Jun 18, 2023 · 5 comments
Open

Causing high cpu load on Apple silicon #221

captain-rocket opened this issue Jun 18, 2023 · 5 comments

Comments

@captain-rocket
Copy link

This extension is causing high cpu load on Apple silicon

@deanhouseholder
Copy link

deanhouseholder commented Jun 28, 2023

I work remotely on a dev server (via the official Remote SSH plugin) and this causes loads so high that the server hangs! The number of files it is indexing is large and the rg (ripgrep) process just spins out of control!

@ChristianKohler
Copy link
Owner

ChristianKohler commented Jun 30, 2023

Hey @captain-rocket and @deanhouseholder thank you for reporting the issue.

I can't reproduce it on a M1 Mac. Could you help with some more info. Do you have any logs? How do you know it is this extension causing the high cpu load?

@deanhouseholder The extension is not indexing any files and is not running ripgrep. How did you isolate the issue to PathIntellisense? Could I reproduce it?

@deanhouseholder
Copy link

When I disabled this extension, the load immediately dropped. This is on a linux VM. With VSCode connected via ssh to the dev server (via Remote-SSH), I ssh into the dev server and see all of the .vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node processes (using ps -ef). The ones that are hogging server resources are the ones running rg to index all the files in the project (which is large).

@ChristianKohler
Copy link
Owner

Hey @deanhouseholder, one idea I have which could cause this issue is the tsconfig indexing. Do you have a tsconfig? If you have one, could you try the following things:

  1. Remove the tsconfig then activate PathIntellisense -> Check if this solves the issue
  2. If nr.1 solved the issue, re-add tsconfig but remove the baseUrl property, then active PathIntellisense again

Thx for debugging the issue 🙏

@deanhouseholder
Copy link

deanhouseholder commented Jul 26, 2023

My project doesn't use typescript, so no tsconfig files. This particular one is a very large vanilla PHP project.

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

No branches or pull requests

3 participants