Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Merge remote-tracking branch 'origin/main' into assistant-2
Antonio Scandurra20e65a533c1e
diff --cc crates/workspace/src/workspace.rsindex 2aa937c9a93,795747cfcc5..9cc175ab4c5--- a/crates/workspace/src/workspace.rs+++ b/crates/workspace/src/workspace.rs@@@ -1673,21 -1678,12 +1678,22 @@@ impl Workspaceself.serialize_workspace(cx);cx.notify();- break;+ return panel;}}+ None}+ pub fn panel<T: Panel>(&self, cx: &WindowContext) -> Option<ViewHandle<T>> {+ for dock in [&self.left_dock, &self.bottom_dock, &self.right_dock] {+ let dock = dock.read(cx);+ if let Some(panel) = dock.panel::<T>() {+ return Some(panel);+ }+ }+ None+ }+fn zoom_out(&mut self, cx: &mut ViewContext<Self>) {for pane in &self.panes {pane.update(cx, |pane, cx| pane.set_zoomed(false, cx));diff --cc crates/zed/src/zed.rsindex dffdccdfe5e,6dbddae2ada..83792514852--- a/crates/zed/src/zed.rs+++ b/crates/zed/src/zed.rs@@@ -357,11 -354,10 +357,11 @@@ pub fn initialize_workspace.map_or(false, |entry| entry.is_dir())}){- workspace.toggle_dock(project_panel_position, false, cx);+ workspace.toggle_dock(project_panel_position, cx);}- workspace.add_panel(terminal_panel, cx)+ workspace.add_panel(terminal_panel, cx);+ workspace.add_panel(assistant_panel, cx);})?;Ok(())})