Remote connection to Linux. After entering the password, there are two prompts on the right
And the terminal cannot input
The remote directory could not be loaded
I had tried countless times in many ways
Reinstall vocode,delete ~/.vscode-server/
directory, and so on.
What the hell should I do.
wsl -l --running
wsl --shutdown
wsl
This can be resolved by rebooting the host machine (i.e. reboot your Windows PC) and restarting your WSL-2 box, then launching VSCode remote again.
No idea why this happens but from time to time I experience this issue.
Confirmed issue on:
Ubuntu 20.04
Vs code 1.60.1
I changed the setting remote.WSL.server.connectThroughLocalhost
(Settings -> Extensions -> Remote - WSL -> Connect Through Localhost) from disabled to enabled, and that fixed the issue for me.
No idea why this happened in the first place though, it was working fine without enabling this setting for over 2 months, and then suddenly it stopped working.
Maybe the IP of the virtual machine changed in some unexpected way?
If anyone else comes across this question it's very easy.
Ex.
If you are using Docker and the popular NGINX Proxy Manager; when you are adding a proxy host make sure to choose websocket support
No more 1006 error :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With