24

enter image description here

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?

zibidigonzales
  • 338
  • 3
  • 9

2 Answers2

1

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.

Shayan
  • 709
  • 1
  • 15
  • 31
0

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.

Mitch M
  • 378
  • 5
  • 6