Is there a way to reconnect to a disconnected VS Code Remote SSH connection?

smartexpert picture smartexpert · Mar 16, 2020 · Viewed 7.1k times · Source

When you're running VS Code Remote SSH and loose network connectivity over a long period of time and return to VS Code, the status on the bottom left show's "Disconnected from SSH: ". However, there doesn't seem to be a way to reconnect the session. I always have to revert to starting a new VS Code Remote SSH session. How can I reconnect?

Answer

Paul Omta picture Paul Omta · Feb 23, 2021

You can reload the window. It keeps unsaved changes even. Press F1 to search for commands, then search for:

Developer: Reload Window

Version of VSCode when trying this: 1.53.2.