Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Open new remote projects in the same window via sidebar (#53654)
Max Brunsfeldcca6552bc422
diff --git a/crates/recent_projects/src/remote_servers.rs b/crates/recent_projects/src/remote_servers.rsindex d360ba4233d..0e15abf296e 100644--- a/crates/recent_projects/src/remote_servers.rs+++ b/crates/recent_projects/src/remote_servers.rs@@ -488,18 +488,21 @@ impl ProjectPicker {}).log_err();- let options = cx- .update(|_, cx| (app_state.build_window_options)(None, cx))- .log_err()?;- let window = cx- .open_window(options, |window, cx| {+ let window = if create_new_window {+ let options = cx+ .update(|_, cx| (app_state.build_window_options)(None, cx))+ .log_err()?;+ cx.open_window(options, |window, cx| {let workspace = cx.new(|cx| {telemetry::event!("SSH Project Created");Workspace::new(None, project.clone(), app_state.clone(), window, cx)});cx.new(|cx| MultiWorkspace::new(workspace, window, cx))})- .log_err()?;+ .log_err()+ } else {+ cx.window_handle().downcast::<MultiWorkspace>()+ }?;let items = open_remote_project_with_existing_connection(connection, project, paths, app_state, window, None, cx,