windows 11 – Visual Studio Code (VS Code) – Keeps disappearing/uninstalling

I use Visual Studio Code on Windows 11 Pro on a Microsoft Surface Laptop Studio 2. Very frequently, when I reboot or wake up the computer, I am finding that Visual Studio Code is missing with an error that it could not find code.exe and requires that I reinstall it. This happens probably once every one to two weeks, sometimes even more frequently.

Guidance on what could be causing this, how I could prevent this or ensure that VS Code is always present would be appreciated. I am not sure where to start with diagnosing this issue.

Operating System Information:
Edition Windows 11 Pro
Version 24H2
OS build 26100.6588
Experience Windows Feature Experience Pack 1000.26100.234.0

Hardware Information
Processor 13th Gen Intel(R) Core(TM) i7-13800H (2.90 GHz)
Installed RAM 32.0 GB (31.8 GB usable)
System type 64-bit operating system, x64-based processor
Pen and touch Pen and touch support with 10 touch points

Read more here: Source link