I’m using Visual Studio Code 1.88.1 on Windows 10 to edit source code remotely on an Ubuntu 22.04 host, using Microsoft’s Remote Development extension pack to connect over a WAN. This was working for a long time until yesterday, and now every few minutes it loses its connection.
When this happens, I can’t save or open any files, and the status bar says “Reconnecting to SSH: [remote host]…” with spinning arrows. It stays that way until I restart VS Code. At the same time, I have a separate SSH shell to the remote host that stays connected, and I can ping it from my local Windows laptop the whole time.
I found a suggestion to restart the server process on the remote host, but that didn’t help.