Share via

Unable to remove wsl from vscode

Khushal Sonawat 6 Reputation points
2021-05-08T10:03:49.473+00:00

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?

Community Center | Not monitored
0 comments No comments

2 answers

Sort by: Most helpful
  1. paranoid 6 Reputation points
    2022-03-30T05:56:23.53+00:00

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

    1 person found this answer helpful.
    0 comments No comments

  2. Tianyu Sun-MSFT 34,826 Reputation points Microsoft External Staff
    2021-05-10T01:48:45.42+00:00

    Hi @Khushal Sonawat ,

    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://learn.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.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.