Description
From vscode-dotnettools created by m4ss1m0g: microsoft/vscode-dotnettools#301
Describe the Issue
Using scoop (a package manager) for installing vscode on subsequential update when starting vscode broke the extension. On C# output the message is:
fail: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
Failed to initialize AssemblyLoadContext Microsoft.VisualStudio.LanguageServices.DevKit
System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\Users\user1\scoop\apps\vscode\1.80.1\data\extensions\ms-dotnettools.csdevkit-0.2.100-win32-x64\components\roslyn-visualstudio-languageservices-devkit\node_modules@microsoft\visualstudio-languageservices-devkit'.
This error raises when I update the vscode from 1.80.1 to 1.80.2
Steps To Reproduce
- Install scoop
- Install vscode with scoop
scoop install vscode
- Install the C# Dev KIt extension
- Update vscode with scoop
- Start vscode
- On C# output there are the error above
Expected Behavior
When updating vscode the extensions find the new path.
Notes
I found the path on C:\Users\user1\scoop\persist\vscode\data\extensions\ms-dotnettools.csdevkit-0.2.100-win32-x64\cache
directory.
Removing the folder and reload the vscode fix the error.
Environment Information
- OS: Windows 11
- VSCode: 1.80.2
- Extension Version:
- C# Dev Kit v.0.2.100 preview
- C# v2.0.312 preview