Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2810

Visual studio code command doesn't work on WSL 2

$
0
0

For some reason, when I type the command code . from a WSL terminal I have the message:

Command is only available in WSL or inside a Visual Studio Code terminal.

After some research, I tried to fix it with the following commands:

  • rm -r ~/.vscode-server
  • code .

It redownloads VS Code Server and it works correctly but just for one terminal instance. When I open a new terminal, I still have the message :

Command is only available in WSL or inside a Visual Studio Code terminal.

I don't have the issue when I use the command code in a VS code terminal.


Viewing all articles
Browse latest Browse all 2810

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>