Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

sidebar: Move to new workspace non-Wayland (#54055)

Cameron Mcloughlinf7d46cf7d02c
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index 40d6a369692..b4afd209216 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -2092,6 +2092,15 @@ impl Workspace {
});
})
.log_err();
+
+ if open_mode == OpenMode::NewWindow {
+ window
+ .update(cx, |_, window, _cx| {
+ window.activate_window();
+ })
+ .log_err();
+ }
+
Ok(OpenResult {
window,
workspace,