I downloaded the WSL Ubuntu on my Windows, and tried to link it to my VScode, but there are two errors pops up saying:

1.Coude not fetch remote environment 2.Failed to connect to the remote extension host server (Error: websocket close with status code 1006)

here is what the error says

WSL targets

Ubuntu version

Extensions cannot be added as well

I tryed so many methods from online as well:

1.reinstall VScode 2.shutdown/restart wsl 3.Remove .vscode-server in WSL (rm -rf ~/.vscode-server) 4.Restart my PC 5.Downgrade my VScode

But none of them work, I am wondering how can i fix this issue.

0

There are 0 best solutions below