Skip to content

Persistent rg.exe blocking Visual Studio Code Updates #225767

Open
@cilerler

Description

For a long time (dating back to Windows 10 and early Visual Studio Code releases), I've consistently encountered an issue where every Visual Studio Code update fails. I'm currently using Windows 11 23H2 and the latest version (1.92) of Visual Studio Code. After investigating, I identified that the problem stems from rg.exe, located at:

$HOME\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules.asar.unpacked\@vscode\ripgrep\bin\rg.exe

I've tried shutting it down via the Taskbar, using PowerToys Unlock with File Locksmith, and even SysInternals Process Explorer, but nothing can terminate or stop this file. After restarting, I have only a few seconds to delete it, even without opening VS Code. It seems something triggers it to run and it remains active indefinitely. However, if I’m quick enough to delete it after a restart, the VS Code update proceeds without issues.

Any advice on resolving this would be greatly appreciated.

image

image

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginstall-updateVS Code installation and upgrade system issuessearchSearch widget and operation issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions