Share the macOS window host, resume sessions, and group Linux windows

This commit is contained in:
James Magahern
2026-11-17 18:12:22 -08:00
parent a388944d73
commit 0f272d5298
9 changed files with 666 additions and 84 deletions
+12
View File
@@ -51,6 +51,18 @@ pub struct Workspace {
transition_frame_pending: bool,
_updates: Task<()>,
}
impl Drop for Workspace {
fn drop(&mut self) {
// GPUI drops each window's root on close, including during app shutdown.
if self.client.remote().is_some()
&& let Err(error) = self.client.remember_remote_detach()
{
log::warn!("Could not remember detached SSH session: {error:#}");
}
}
}
impl Workspace {
fn begin_tab_rename(&mut self, window: &mut Window, cx: &mut Context<Self>) {
let Some(tab) = self