Every time I open Remote WSL, it downloads server. Even after download is completed, when I open VSCode and Remote WSL again, it starts downloading again. How to solve this so that it doesn't download server every time?
-
Fixed on its own, hope it doesn't happen again. – zibidigonzales Mar 23 '22 at 13:59
-
And now it happened again after I installed a new program. – zibidigonzales Apr 01 '22 at 06:57
2 Answers
In my case, VSCode usually hangs on "Downloading VSCode server" due to poor network connectivity. I don't know of any way to make it not update VSCode server every time you connect to it remotely, but that would be a nice feature for developers to consider. But if you're stuck on "Downloading VSCode server", you don't have to restart your system. You can kill the wget
process that VSCode is running to update VSCode server:
ps -aux | grep -i vs
shows:
root 18838 0.0 0.0 16500 9548 ? S 10:24 0:00 wget --tries=1 --connect-timeout=7 --dns-timeout=7 -nv -O vscode-server.tar.gz https://update.code.visualstudio.com/commit:b3e4e68a0bc097f0ae7907b217c1119af9e03435/server-linux-x64/stable
sudo kill -9 18838
And you can try connecting to it again.
Note that closing the remote connection and reconnecting doesn't help alleviate the issue, it will even fail to connect to VSCode, you should kill the wget
process as I've stated above.

- 709
- 1
- 15
- 31
I experienced the same. It should finish on its own and open the project folder on wsl, but it got stuck on it for quite some time. I restarted my pc and reopened vs code. It started the download again but finished much faster than the first time.

- 378
- 5
- 6
-
3Yeah the problem is I don't always have decent internet connection. – zibidigonzales Oct 19 '22 at 07:17