Repository: vscode
Issue: My whole PC stuck for around 1 minute when `npm install` or remove node_modules 
Labels: bug,freeze-slow-crash-leak,perf

Type: <b>Bug</b>

It's random, not every time I do `npm install` or remove node_modules the PC get stucked. In my Windows 10 Task Manager, it shows `system interrupts 100%` followed by `vscode 100%`. Even if I disable all my extensions, nothing will change. But if I close vscode, then do `npm install` or remove node_modules, it runs so quickly like several seconds.



VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z)
OS version: Windows_NT x64 10.0.19045
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|47.94GB (20.35GB free)|
|Process Argv|--crash-reporter-id 21db96ba-ec07-46d5-bc7b-8c18640c0072|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (67)</summary>

Extension|Author (truncated)|Version
---|---|---
terraform|4op|0.2.5
tasks|act|0.16.0
project-manager|ale|12.8.0
arepl|alm|2.0.5
vscode-apollo|apo|1.20.0
vscode-django|bat|1.15.0
vs-edit-hosts|con|0.0.1
python-environment-manager|don|1.2.4
python-extension-pack|don|1.7.0
xml|Dot|2.5.1
pug-formatter|duc|0.6.0
prettier-vscode|esb|10.4.0
shell-format|fox|7.2.5
terraform|has|2.30.2
html-tag-wrapper|hwe|0.2.3
vscode-peacock|joh|4.2.2
vsc-python-indent|Kev|1.18.0
kite|kit|0.147.0
MagicPython|mag|1.1.0
auto-build|mar|2.1.51
git-graph|mhu|1.30.0
vscode-docker|ms-|1.29.1
csharp|ms-|2.34.12
vscode-dotnet-runtime|ms-|2.0.6
black-formatter|ms-|2024.2.0
debugpy|ms-|2024.6.0
isort|ms-|2023.10.1
pylint|ms-|2023.10.1
python|ms-|2024.8.1
vscode-pylance|ms-|2024.6.1
jupyter|ms-|2024.5.0
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.18
vscode-jupyter-cell-tags|ms-|0.1.9
vscode-jupyter-slideshow|ms-|0.1.6
remote-containers|ms-|0.369.0
remote-ssh|ms-|0.112.0
remote-ssh-edit|ms-|0.86.0
remote-wsl|ms-|0.88.2
cmake-tools|ms-|1.18.42
cpptools|ms-|1.21.0
cpptools-extension-pack|ms-|1.3.0
hexeditor|ms-|1.10.0
makefile-tools|ms-|0.9.10
remote-explorer|ms-|0.4.3
autodocstring|njp|0.6.1
platformio-ide|pla|3.3.3
pymakr-preview|Pyc|2.25.2
vscode-data-preview|Ran|2.3.0
fabric8-analytics|red|0.9.4
java|red|1.31.0
vscode-commons|red|0.0.6
vscode-xml|red|0.27.1
LiveServer|rit|5.7.9
definition-autocompletion|tib|1.1.8
cmake|twx|0.0.17
vscode-lldb|vad|1.10.0
intellicode-api-usage-examples|Vis|0.2.8
vscodeintellicode|Vis|1.3.1
vscode-java-debug|vsc|0.57.0
vscode-java-dependency|vsc|0.23.6
vscode-java-pack|vsc|0.27.0
vscode-java-test|vsc|0.41.1
vscode-maven|vsc|0.44.0
jinja|who|0.0.8
clang-format|xav|1.9.0
file-size|zh9|1.0.0

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelc:31048052
dsvsc021:30996838
f3je6385:31013174
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
legacy_priority:31082724

```

</details>

<!-- generated by issue reporter -->