microsoft / microsoft/vscode

System-wide slowdown when detects a large number of file changes (>50 files)

Open
#327,507 0 comments 1 reaction 1 assignee Claimed by @deepak1556 View on GitHub
bug
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Performance Issue

## Description / Symptoms
- System-wide instability: When VS Code detects a large number of file changes (around 50+ files), the entire PC's performance becomes unstable. This issue persists until the PC is restarted.
- Significant input/response delay: The whole OS slows down severely, causing a noticeable delay (several beats) across all system interactions.
- Partial effect from Explorer restart: Restarting Windows Explorer (explorer.exe) slightly relieves the lag, but does not fully resolve the overall performance degradation.
- System resource usage: System resources remain largely underutilized even during the slowdown, ruling out simple resource exhaustion:
- CPU: ~15%
- Memory: ~23%
- GPU: ~5%

## Trigger
- The issue occurs only when a large number of file changes are detected. When there are no or few file changes, VS Code works completely fine without any performance issues.
- Creating or adding a large batch of files via a `.bat` script.
- Refactoring or applying batch updates to `import` statements across multiple files during React Web development.

## What I Have Tried (Workarounds that did NOT resolve the issue):
- Restarting VS Code
- Setting up Dev Drive

## System Info

VS Code version: Code 1.130.0 (1b6a188127eeaf9194f945eb6eb89a657e93c54c, 2026-07-22T14:55:04Z)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 9 9900X 12-Core Processor (24 x 4400)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x73a3 [AMD Radeon PRO W6800], DRIVER_VENDOR=AMD, DRIVER_VERSION=32.0.21043.5001 *ACTIVE*
GPU1: VENDOR= 0x1002, DEVICE=0x13c0 [AMD Radeon(TM) Graphics], DRIVER_VERSION=32.0.21043.5001
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8875
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|189.38GB (145.45GB free)|
|Process Argv|D:\\VisualStudioProject\\AmongUs\\TestableAmongUsModBuilder --crash-reporter-id 11e1c07d-0fb2-47ec-9f3d-b7efe56c948b|
|Screen Reader|no|
|VM|0%|

Process Info

```
CPU % Mem MB PID Process
0 177 300172 code
0 137 50592 pty-host
0 11 39136 "c:\Users\yukieiji\AppData\Local\Programs\Microsoft VS Code\1b6a188127\resources\app\node_modules.asar.unpacked\node-pty\build\Release\conpty\OpenConsole.exe" --headless --width 80 --height 30 --signal 0x588 --server 0x57c
0 102 300996 "C:\Program Files\PowerShell\7\pwsh.exe" -noexit -command "try { . \"c:\Users\yukieiji\AppData\Local\Programs\Microsoft VS Code\1b6a188127\resources\app\out\vs\workbench\contrib\terminal\common\scripts\shellIntegration.ps1\" } catch {}"
0 115 317912 "C:\Program Files\PowerShell\7\pwsh.exe" -noexit -command "try { . \"c:\Users\yukieiji\AppData\Local\Programs\Microsoft VS Code\1b6a188127\resources\app\out\vs\workbench\contrib\terminal\common\scripts\shellIntegration.ps1\" } catch {}"
0 12 318912 "c:\Users\yukieiji\AppData\Local\Programs\Microsoft VS Code\1b6a188127\resources\app\node_modules.asar.unpacked\node-pty\build\Release\conpty\OpenConsole.exe" --headless --width 219 --height 6 --signal 0x67c --server 0x674
0 137 51428 file-watcher [1]
0 446 54556 window [1] (main.py - TestableAmongUsModBuilder - Visual Studio Code)
0 573 285324 extension-host [1]
0 271 34520 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe --logLevel Information --sourceGeneratorExecutionPreference Balanced --razorSourceGenerator c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.razorExtension\Microsoft.CodeAnalysis.Razor.Compiler.dll --razorDesignTimePath c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.razorExtension\Targets\Microsoft.NET.Sdk.Razor.DesignTime.targets --devKitDependencyPath c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.roslynDevKit\Microsoft.VisualStudio.LanguageServices.DevKit.dll --sessionId 8cac1c0d-bd2e-48b1-855a-e69a742f6f2b1785057404563 --extension c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.razorExtension\Microsoft.VisualStudioCode.RazorExtension.dll --extension c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll --extension c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll --extension c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.roslynCopilot\Microsoft.VisualStudio.Copilot.Roslyn.LanguageServer.dll --telemetryLevel all --extensionLogDirectory c:\Users\yukieiji\AppData\Roaming\Code\logs\20260726T181644\window1\exthost\ms-dotnettools.csharp --clientProcessId=285324 --pipe=\\.\pipe\lsp-13baad17215425e2664e0de6bb25ad8c-sock
0 132 51068 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-server.win32-x64\Microsoft.VisualStudio.Code.Server --serviceHubConfigPath c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\servicehub\servicehub.config.json --pipe \\.\pipe\ff9fd2d2-1b42-4595-ae45-b0f146bb7a48 --pipe-server \\.\pipe\5af1ea23-6753-4ebe-84f4-1cc5fd82891b --log-directory c:\Users\yukieiji\AppData\Roaming\Code\logs\20260726T181644\window1\exthost\ms-dotnettools.csdevkit --log-verbosity Information --vscodeSessionId 8cac1c0d-bd2e-48b1-855a-e69a742f6f2b1785057404563 --vscodeTelemetryLevel all --cache-directory c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\cache --component c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\CPS\platforms\win32-x64\node_modules\@microsoft\msbuild-dependencies.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\CPS\platforms\win32-x64\node_modules\@microsoft\visualstudio-projectsystem-buildhost-rpc.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\CPS\platforms\win32-x64\node_modules\@microsoft\visualstudio-projectsystem-buildhost.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\CPS\platforms\win32-x64\node_modules\@microsoft\visualstudio-projectsystem-server.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\dnpsv\platforms\win32-x64\node_modules\@microsoft\vscode.projectsystem.managed.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\dnpsv\platforms\win32-x64\node_modules\@microsoft\vscode.templateengine.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-controller.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-server-shared.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-testwindow-vscode-service.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-server.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-reliability-monitor.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-code-servicehost.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\coverage-services.win32-x64 c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\VSDebugCore\platforms\win32-x64\node_modules\@microsoft\visualstudio-debugger-devkit.win32-x64
0 7 50232 C:\WINDOWS\system32\conhost.exe 0x4
0 86 295608 "c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-controller.win32-x64/Microsoft.VisualStudio.Code.ServiceController" 7ac2507ee06299ed530ede06cf7aee30640b7ce1b4be516ab3964a7caed4f07f /ControllerCooldownTimeout:30000 "/TelemetrySession:{\"TelemetryLevel\":\"all\",\"IsOptedIn\":false,\"HostName\":\"Default\",\"AppInsightsInstrumentationKey\":null,\"AsimovInstrumentationKey\":null,\"CollectorApiKey\":\"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255\",\"AppId\":1010,\"UserId\":\"6c764e49-14f7-4f85-9c80-e6d75e1449b3\",\"Id\":\"8cac1c0d-bd2e-48b1-855a-e69a742f6f2b1785057404563\",\"ProcessStartTime\":134295310226661606,\"SkuName\":null,\"VSExeVersion\":null,\"BucketFiltersToEnableWatsonForFaults\":[],\"BucketFiltersToAddDumpsToFaults\":[]}"
0 101 26224 "c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-code-servicehost.win32-x64/Microsoft.VisualStudio.Code.ServiceHost.exe" dotnet$C94B8CFE-E3FD-4BAF-A941-2866DBB566FE net.pipe://295608244441AE88241B67B6EBD44FB14A1BEC "/TelemetrySession:{\"TelemetryLevel\":\"all\",\"IsOptedIn\":false,\"HostName\":\"Default\",\"AppInsightsInstrumentationKey\":null,\"AsimovInstrumentationKey\":null,\"CollectorApiKey\":\"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255\",\"AppId\":1010,\"UserId\":\"6c764e49-14f7-4f85-9c80-e6d75e1449b3\",\"Id\":\"8cac1c0d-bd2e-48b1-855a-e69a742f6f2b1785057404563\",\"ProcessStartTime\":134295310226661606,\"SkuName\":null,\"VSExeVersion\":null,\"BucketFiltersToEnableWatsonForFaults\":[],\"BucketFiltersToAddDumpsToFaults\":[]}"
0 7 11896 C:\WINDOWS\system32\conhost.exe 0x4
0 751 50824 "c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-code-servicehost.win32-x64\Microsoft.VisualStudio.Code.ServiceHost.exe" --runtimeconfig c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-code-servicehost.win32-x64\Microsoft.VisualStudio.Code.ServiceHost.MultipleHeap.runtimeconfig.json dotnet.projectSystem$C94B8CFE-E3FD-4BAF-A941-2866DBB566FE net.pipe://295608244441AE88241B67B6EBD44FB14A1BEC "/TelemetrySession:{\"TelemetryLevel\":\"all\",\"IsOptedIn\":false,\"HostName\":\"Default\",\"AppInsightsInstrumentationKey\":null,\"AsimovInstrumentationKey\":null,\"CollectorApiKey\":\"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255\",\"AppId\":1010,\"UserId\":\"6c764e49-14f7-4f85-9c80-e6d75e1449b3\",\"Id\":\"8cac1c0d-bd2e-48b1-855a-e69a742f6f2b1785057404563\",\"ProcessStartTime\":134295310226661606,\"SkuName\":null,\"VSExeVersion\":null,\"BucketFiltersToEnableWatsonForFaults\":[],\"BucketFiltersToAddDumpsToFaults\":[]}"
0 7 43392 C:\WINDOWS\system32\conhost.exe 0x4
0 142 305140 "C:\Program Files\dotnet\dotnet.exe" "c:\Users\yukieiji\.vscode\extensions\ms-dotnettools.csdevkit-3.20.199-win32-x64\components\CPS\platforms\win32-x64\node_modules\@microsoft\visualstudio-projectsystem-buildhost.win32-x64/Microsoft.VisualStudio.ProjectSystem.Server.BuildHost.dll"
0 7 305104 C:\WINDOWS\system32\conhost.exe 0x4
0 7 300920 C:\WINDOWS\system32\conhost.exe 0x4
0 12 53744 c:\Users\yukieiji\.vscode\extensions\ms-python.vscode-python-envs-1.36.0-win32-x64\python-env-tools\bin\pet.exe server
0 7 48600 C:\WINDOWS\system32\conhost.exe 0x4
0 106 284880 "C:\Users\yukieiji\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\yukieiji\AppData\Local\Programs\Microsoft VS Code\1b6a188127\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=285324
0 490 300444 electron-nodejs (bundle.js)
0 165 300276 gpu-process
0 36 300372 crashpad-handler
0 55 300416 utility-network-service
0 157 300500 shared-process
```

Workspace Info

```
| Window (main.py - TestableAmongUsModBuilder - Visual Studio Code)
| Folder (TestableAmongUsModBuilder): 18108 files
| File types: cs(15086) dll(1775) py(470) csproj(126) editorconfig(123)
| pyc(121) config(104) pdb(81) json(38) cache(30)
| other(154)
| Conf files: csproj(126) agents.md(1) sln(1);
```

Extensions (28)

Name|Identifier|Author|Version
---|---|---|---
Biome|biomejs.biome|biomejs|3.7.1
Tailwind CSS IntelliSense|bradlc.vscode-tailwindcss|bradlc|0.16.0
CodeRabbit|coderabbit.coderabbit-vscode|coderabbit|0.21.1
Cucumber|cucumberopen.cucumber-official|CucumberOpen|1.11.0
LM Studio for Copilot Chat|danlambiase.lmstudio-copilot-provider|DanLambiase|1.30.3
Rust Syntax|dustypomerleau.rust-syntax|dustypomerleau|0.6.1
Prettier - Code formatter|esbenp.prettier-vscode|esbenp|12.4.0
GitHub Actions|github.vscode-github-actions|github|0.32.3
LaTeX Workshop|james-yu.latex-workshop|James-Yu|10.16.1
Git Graph|mhutchie.git-graph|mhutchie|1.30.0
Container Tools|ms-azuretools.vscode-containers|ms-azuretools|2.4.5
Japanese Language Pack for Visual Studio Code|ms-ceintl.vscode-language-pack-ja|MS-CEINTL|1.130.2026072017
C# 開発キット|ms-dotnettools.csdevkit|ms-dotnettools|3.20.199
C#|ms-dotnettools.csharp|ms-dotnettools|2.140.9
.NET Install Tool|ms-dotnettools.vscode-dotnet-runtime|ms-dotnettools|3.1.0
Kubernetes|ms-kubernetes-tools.vscode-kubernetes-tools|ms-kubernetes-tools|1.4.1
Playwright Test for VSCode|ms-playwright.playwright|ms-playwright|1.1.19
Python Debugger|ms-python.debugpy|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.3.1
Python Environments|ms-python.vscode-python-envs|ms-python|1.36.0
開発コンテナー|ms-vscode-remote.remote-containers|ms-vscode-remote|0.466.0
PowerShell|ms-vscode.powershell|ms-vscode|2025.4.0
OpenTofu (official)|opentofu.vscode-opentofu|opentofu|0.6.3
YAML|redhat.vscode-yaml|redhat|1.24.0
rust-analyzer|rust-lang.rust-analyzer|rust-lang|0.3.2981
Tauri|tauri-apps.tauri-vscode|tauri-apps|0.2.9
vscode-icons|vscode-icons-team.vscode-icons|vscode-icons-team|12.19.0

A/B Experiments

```
vsliv368cf:30146710
vswsl492cf:30256860
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
cp_cls_t_1081:31454832
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_t:31478206
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
748c7209:31512887
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
jh5f2457_c:31540921
41836166:31537719
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
d7b18187:31526828
nes-curr-leftover-1500:31538366
8hjh2968:31555644
h561g132:31533256
sessions_5:31532894
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
nes-ex-cf-euporie-03:31542868
5fe6f778:31554331
allow-none:31555437
fd5dc207:31551400
nes-gb3-4k:31554347
0dg73464:31554319
d4c76da2:31554780
treatment-23-1:31555779
unuse_dynamic_mcp:31555281

```

## Performance Trace log DL link

https://1drv.ms/u/c/f13fe65f918d25c5/IQDmQSAAx1gyTqK3YB7F6NKrAeTjyZ5z7bRhh9EVp_vd4EI?e=oLNFDA

## Video

In the attached video, you can see that auto-suggestions fail to appear when typing `run_command`, and there is a delay in rendering/opening dialog.

https://github.com/user-attachments/assets/b4a767b3-5a5b-4aa4-af76-49b1afedfe11

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.