-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Description
Type: Bug
I've seen other issues about this, but they're all closed and locked. All of the ones I found were about projects with a Typescript workspace, and the suggestion was to disable a switch on the TS language server options; However, I'm working with a flutter project (and I don't target web).
Just like in those issues, I don't really know how to offer a repro, as this bug happened only a few times, seemingly at random. What I do know is that something triggers it and, when that happens, file-watcher starts using 100% of a single thread whenever VS is in the background. If I bring VS back to the foreground, the CPU usage decreases significantly, albeit still higher than normal. As soon as I alt-tab, it starts again. I don't mind the slightly higher CPU usage tbh, but the fact it's concentrated on a single thread means it creates a hotspot, the CPU gets very hot very fast and fans spin up really loudly.
Looking at the Process Explorer inside VS, a process with name "file-watcher [2]" was the culprit. Killing it mitigated the issue, but I don't know if there are any consequences (and it's a bit annoying having to do that).
I've recently experienced the same issue with Bruno, which also uses Electron. In that case I was able to find out a repro, and it was related to deleting files that were being watched.
One detail, not sure if relevant, is that my workspace is on a Windows Dev Drive.
VS Code version: Code 1.112.0 (07ff9d6, 2026-03-17T18:09:23Z)
OS version: Windows_NT x64 10.0.26200
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 9 7950X3D 16-Core Processor (32 x 4200) |
| GPU Status | 2d_canvas: enabled GPU0: VENDOR= 0x10de, DEVICE=0x2684 [NVIDIA GeForce RTX 4090], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.9579 ACTIVE GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309 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 webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 63.65GB (32.05GB free) |
| Process Argv | --crash-reporter-id cc8b9d66-7842-4027-90bf-7ad186ce0e0e |
| Screen Reader | no |
| VM | 0% |
Extensions (17)
| Extension | Author (truncated) | Version |
|---|---|---|
| dart-code | Dar | 3.130.1 |
| flutter | Dar | 3.130.0 |
| docker | doc | 0.18.0 |
| copilot-chat | Git | 0.40.1 |
| arb-editor | Goo | 0.2.2 |
| theme-monokai-pro-vscode | mon | 2.0.12 |
| vscode-containers | ms- | 2.4.1 |
| vscode-docker | ms- | 2.0.0 |
| csdevkit | ms- | 2.10.3 |
| csharp | ms- | 2.120.3 |
| vscode-dotnet-runtime | ms- | 3.0.0 |
| vscode-pgsql | ms- | 1.18.2 |
| remote-containers | ms- | 0.447.0 |
| remote-wsl | ms- | 0.104.3 |
| powershell | ms- | 2025.4.0 |
| vsliveshare | ms- | 1.0.5959 |
| vscode-yaml | red | 1.21.0 |
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
6abeh943:31336334
envsactivate1:31464700
cloudbuttont:31379625
aihoversummaries_t:31469308
3efgi100_wstrepl:31403338
use-responses-api:31390855
je187915:31454425
ec5jj548:31422691
cp_cls_t_966_ss:31454198
4je02754:31466945
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31427726
38bie571_auto:31426784
cp_cls_c_1081:31454833
ia-use-proxy-models-svc:31452481
a43f0575b:31442825
e9c30283:31461165
test_treatment2:31471001
ts_provider_enabled:31458190
nes-conv-2-3:31477815
control_6dc23131:31467998
idci7584:31464702
edit_mode_hidden:31461530
864ei723_large_tool_results_to_disk:31460878
notips:31471632
i54ji102:31458073
534a6447:31478749
chat:31457767
0h66b693:31473807
rt_s690_j128:31478155
bg_compact_t:31479323
t-some:31479384
cpptoolsoff-v2:31475362
editor1:31474144
c3257622:31473910
client_tst_t:31479370
ddid_c:31478207