question

KhushalSonawat-8525 avatar image
1 Vote"
KhushalSonawat-8525 asked paranoid-9632 answered

Unable to remove wsl from vscode

Some time ago, I installed the WSL2 extension in Visual Studio Code. But soon, wsl2 starting using up my CPU to 100% and I had to uninstall this. After that, I don't know what happened but I couldn't use vscode anymore. Every time I open vscode, it gives an error stating, Extension 'Remote - WSL' is required to open the remote window. Do you want to install the extension?. even though wsl2 was uninstalled long ago. When prompted for reinstalling the extension, it started giving me errors like Windows Subsystem for Linux not detected. The Remote WSL extension requires Windows 10 with the Windows Subsystem for Linux feature installed. (which is quite obvious as I did not have wsl2). I surfed the net but the github issues are limited to collaborators only. Can anyone please help me with this?

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered

Hi @KhushalSonawat-8525 ,

Welcome to Microsoft Q&A forum.

Did you install the official extension called Remote - WSL or other third-party extension called WSL2 maybe?

If you try to annotate the related settings of WSL2 in VS Code’s settings file(`settings.json`), will this issue disappear?

BTW, as VS Code and extensions of VS Code related issue is currently not supported in the Microsoft Q&A forums, the supported products are listed over here: https://docs.microsoft.com/en-us/answers/products/ . You can post your issue here: Stack Overflow tagged visual studio code or here: GitHub vscode-remote-release (Issues).

Thanks for your understanding.

Best Regards,
Tianyu


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

paranoid-9632 avatar image
0 Votes"
paranoid-9632 answered

Not a complete fix but you can type "Close remote connection" in the command palette and that'll fix some things

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.