Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
fixed tests to match new behavior
Mikayla Makib156644daf92
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rsindex 75820a8fbc9..5a5e5686f70 100644--- a/crates/workspace/src/workspace.rs+++ b/crates/workspace/src/workspace.rs@@ -4453,7 +4453,7 @@ mod tests {workspace.read_with(cx, |workspace, cx| {assert!(workspace.right_dock().read(cx).is_open());assert!(!panel.is_zoomed(cx));- assert!(!panel.has_focus(cx));+ assert!(panel.has_focus(cx));});// Focus and zoom panel@@ -4528,7 +4528,7 @@ mod tests {workspace.read_with(cx, |workspace, cx| {let pane = pane.read(cx);assert!(!pane.is_zoomed());- assert!(pane.has_focus());+ assert!(!pane.has_focus());assert!(workspace.right_dock().read(cx).is_open());assert!(workspace.zoomed.is_none());});diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rsindex 088d26be78a..bcdfe57a469 100644--- a/crates/zed/src/zed.rs+++ b/crates/zed/src/zed.rs@@ -384,6 +384,8 @@ pub fn initialize_workspace(workspace.toggle_dock(project_panel_position, cx);}+ cx.focus_self();+workspace.add_panel(terminal_panel, cx);if let Some(assistant_panel) = assistant_panel {workspace.add_panel(assistant_panel, cx);