microsoft / microsoft/vscode

Remote-SSH: Avoid connection reconnects on workspace change

Open
#325,146 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

If I am using remote-ssh on a workspace, and I switch to a different workspace on the same machine (eg: change from `~/workspace1` to `~/workspace2`), is there a way to avoid the "Setting up SSH host..."?

Image

If the remote device already has the ssh connection set up, why does it need to close the connection and start a new one? reusing the connection would dramatically speed up this process when switching across multiple workspaces multiple times.

This is especially frustrating when dealing with multiple projects in the same monorepo. switching to a different project means I have to wait around 20seconds every time I switch

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Remote-SSH handles workspace changes and the “Setting up SSH host...” flow when switching between workspaces on the same machine. The change is complete when an existing SSH connection can be reused across workspace switches without restarting setup or introducing connection failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.