orta / vscode-typescript-dev

An extension for working in the TypeScript codebase
8 stars 2 forks source link

Extension uses 100% CPU when DefinitelyTyped is opened in VS Code #18

Open rbuckton opened 6 months ago

rbuckton commented 6 months ago

If this extension is enabled and I open the DefinitelyTyped Repo in VS Code, it causes 100% CPU utilization across multiple invocations of rg.exe (ripgrep, used by VS Code's search service) all with the following command line:

"...\Microsoft VS Code Insiders\resources\app\node_modules.asar.unpacked\@vscode\ripgrep\bin\rg.exe" --files --hidden --case-sensitive --no-require-git -g /tests/baselines/local/**/* --no-ignore --follow --no-config --no-ignore-global

Which seems to be attributed to this line: https://github.com/orta/vscode-typescript-dev/blob/master/src/baselineFinder.ts#L7-L8

rbuckton commented 6 months ago

This seems to have been an issue with dprint's VSCode extension as well, and was fixed by adding an exclude path for node_modules: https://github.com/dprint/dprint-vscode/pull/68/files