-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Intellisense refactoring extremely slow when using pnpm #42870
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
Comments
We'd need an actual repo to test this in order to investigate further; if just any |
Here's a simple project that repos the issue. This was tested using the same machine listed in the issue. Steps:
Extra details: After the first install using pnpm, intellisense sometimes is just broken when trying to import from node_modules. Using the Let me know if I can provide any other details. |
Duplicate of #40584 (fixed in 4.2). If you use the nightly extension (or just use the TypeScript 4.2 RC) you should be able to verify that it’s fixed for you. |
Using Typescript 4.2.2 this is much better. yarn is still noticeably faster. Just tried a quick test when importing 10 missing imports. Using with the yarn install was ~10 seconds, pnpm was ~16 seconds. That's completely within an acceptable range now. |
Issue Type: Bug
I switched my react/typescript project to use pnpm to improve my CI build times, this lead to a massive slow down with the intellisense import suggestions. On the order of 3 - 5 seconds just to populate the context menu. If I used the "Add all missing imports" feature that could take a few minutes to complete (for a lot of missing imports this was literally ~10 minutes before it timed out out on me). I tested with all my extensions disabled, and still had the same performance issue. Cleaning my node_modules, and using
npm
oryarn
to install the modules fixed it.Repo:
rm -rf node_modules/
pnpm i
Running the contributed command: '_vscode_delegate_cmd_klb4cauz' failed.
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:45:54.515Z)
OS version: Darwin x64 19.6.0
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (41)
The text was updated successfully, but these errors were encountered: