Preserve SSH connection settings when opening new windows
Forward the invoking shell's remote executable and agent through the Linux prefork launcher. Resolve mounted tabs by stable ID for the New Window shortcut and reconnect to nested destinations from the local host.
This commit is contained in:
+1
-4
@@ -186,10 +186,7 @@ impl Workspace {
|
||||
.focused_pane()
|
||||
.map(|pane| pane.read(cx).data().cwd.clone());
|
||||
let active_tab = self.snapshot.as_deref().and_then(Snapshot::active_tab);
|
||||
let remote = client
|
||||
.remote()
|
||||
.or_else(|| active_tab?.remote.as_deref())
|
||||
.map(str::to_owned);
|
||||
let remote = active_tab.and_then(|tab| tab.remote.clone().map(|host| (tab.id, host)));
|
||||
let launch = cx
|
||||
.background_executor()
|
||||
.spawn(async move { client.open_window(remote, cwd) });
|
||||
|
||||
Reference in New Issue
Block a user