Repository navigation
Description
Type: Bug
I simply ran the update now option when it was presented. During the upgrade, after VS Code shutdown and before it launched again I received a "Visual Studio Code" critical error popup indicating that there was an error deleting a directory. With Access is denied. (os error5).
I utilize two accounts when I login. Once is my normal account and the other is an elevated account. My normal account does not have access to the filesystem. I launch VS Code using my elevated account as all of my scripting is for servers and elevated privilages situations.
I'm certain this is behind the error. However, this is new. It has never happened before in the dozens of times I've updated VS Code.
VS Code version: Code 1.109.4 (c3a2684, 2026-02-16T15:35:57.932Z)
OS version: Windows_NT x64 10.0.26100
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 1805) |
| GPU Status | 2d_canvas: enabled GPU0: VENDOR= 0x8086, DEVICE=0x9a49 [Intel(R) Iris(R) Xe Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.7080 ACTIVE GPU1: VENDOR= 0x8086, DEVICE=0x9a49 [Intel(R) Iris(R) Xe Graphics], DRIVER_VERSION=32.0.101.7080 GPU2: 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) | 31.39GB (16.30GB free) |
| Process Argv | --crash-reporter-id afd24bad-0586-46e7-ace3-7f7f62499c6e |
| Screen Reader | no |
| VM | 0% |
Extensions (6)
| Extension | Author (truncated) | Version |
|---|---|---|
| vscode-better-align | cho | 1.4.4 |
| gitlens | eam | 17.10.0 |
| copilot-chat | Git | 0.37.6 |
| powershell | ms- | 2025.4.0 |
| pester-test | psp | 2023.7.7 |
| errorlens | use | 3.28.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
b6b4d950:31327385
6abeh943:31336334
cloudbuttont:31379625
3efgi100_wstrepl:31403338
55ia6109:31457054
use-responses-api:31390855
je187915:31454425
ec5jj548:31422691
cp_cls_t_966_ss:31454198
4je02754:31463857
ge8j1254_inline_auto_hint_haiku:31427726
nes-autoexp-10:31446583
a5gib710:31434435
38bie571_auto:31426784
7a04d226_do_not_restore_last_panel_session:31438103
406hc587_ask_agent:31428393
cp_cls_c_1081:31454833
copilot-nes-callisto-002:31455108
ia-use-proxy-models-svc:31452481
a43f0575b:31442825
e9c30283:31461165
nes-fast-additive:31462666
idci7584:31463968
edit_mode_hidden:31461530
showstats:31457174
864ei723_large_tool_results_to_disk:31460878
showingstats:31457202
chat:31457767
ah:31461780
Activity
KevinWGagel commentedon Feb 17, 2026
And here is VS Codes info after the error (which I had to click cancel).
Version: 1.109.4 (system setup)
Commit: c3a2684
Date: 2026-02-16T15:35:57.932Z
Electron: 39.3.0
ElectronBuildId: 13313481
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26100
KevinWGagel commentedon Feb 17, 2026
Reviewing the directory that VS Code couldn't delete I see this
The VS Code directory
NimitzDEV commentedon Mar 7, 2026
I had this problem with Antigravity today. It was caused by a process named language_server_windows_x86.exe not being terminated before the update. Try killing that process, then click Retry.
vinixwu commentedon Mar 11, 2026
I ran into this problem also. After update to 1.110.1, everytime I open VSCode, the error is displayed after several seconds.
I didn't use Antigravity and there is no other VSCode instance or language_server_windows_x86.exe running. I deleted the folder manually and there is no more error upon open.
I clicked Check for Update again and VSCode updated to 1.111, the problem didn't occur.
Nimish-go commentedon Apr 17, 2026
I just ran VSCode with administrator rights and It worked for me. Now that error is not popping up atleast.
21 remaining items
dmitrivMS commentedon Jun 10, 2026
Reopening to track remaining work as we reverted part of the change.
DuncanLHS commentedon Jun 10, 2026
Same happening here with insiders. In my case, I had 2 instances of OpenConsole with locks on the parent directory. Left dangling by the last closure of VSCode perhaps? I don't know, but likely.
Anyway, for anyone seeing similar, you can find what's got hold of the folders in Resource Monitor built in to Windows.
Once any other processes are out the way, Retry should work in the installer.
Raymondo97 commentedon Jun 10, 2026
Update:
I just barely updated to 1.124.0, and I didn't get the error. So I don't know if that is a one time success, or if there was something else fixed.
dmitrivMS commentedon Jun 10, 2026
Jayden T. (@Raymondo97) Thanks. We know there is work to do here still, so keeping open.
Drumstix42 commentedon Jul 15, 2026
Issue still persists. Seems to always been related to OpenConsole.exe, and needs to be manually closed/process ended to fix the looping issue.
panagissyrigos commentedon Jul 15, 2026
The error persists even during the update to 1.128. In my case, I see dllhost.exe processes open that lock the folder within VSCode. My question is: why are those processes persist even after VSCode is closed (whether it's closed for the update, or closed by me when I'm done using VSCode). What are those processes doing? Why do they remain open and waste resources? Why won't those processes terminate gracefully and I have to terminate them with taskkill /f?
Deploying VSCode in a managed environment is becoming hard to deal with. How do you expect us to deploy and update VSCode system-wide and to be able to continue updating if we can't trust the process?
dmitrivMS commentedon Jul 27, 2026
Consolidating this under #294546 as these appear to be the same root cause/symptoms.