microsoft / microsoft/vscode-remote-release

SSH disconnects when the laptop goes to sleep even for a short time while the native terminal is running

Open
#5,755 21 comments 33 reactions 1 assignee View on GitHub

@roblourens is already working on this.

Since Jun 29, 2023.

feature-request ssh
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

  • VSCode Version: 1.62.0-insider
  • Local OS Version: macOS Big Sur 11.5.2
  • Remote OS Version: Ubuntu 18.04 LTS
  • Remote Extension/Connection Type: SSH
  • Logs:

Steps to Reproduce:

  1. Open native terminal in macOS and connect to a remote server. Connect to the same server with vscode.
  2. Close the laptop lid and instantly open it up. Alternatively, let the laptop sleep due to inactivity and then instantly wake it up using the trackpad.

The vscode is now disconnected and asks me to reload window. The macOS terminal is still connected to the remote and works perfectly. Is there a way to delay the session time-out time in vscode? It is a bit annoying to reload every time the screen goes off for a minute. I have to increase the sleep duration to tackle this issue.

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.