From c2480a29bb56a27b39d7d6ef150f8acd47ab2169 Mon Sep 17 00:00:00 2001 From: cameron Date: Tue, 10 Mar 2026 18:21:58 +0000 Subject: [PATCH] [wip] compiling --- crates/workspace/src/workspace.rs | 1 + crates/zed/src/zed.rs | 36 +++++++++++++++---------------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 0c36fbebeefe2aaf11b078f45081f470669b2bb0..7ba5b7badd25cb6e1e40e7b9b19ee6783225f476 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -1742,6 +1742,7 @@ impl Workspace { scheduled_tasks: Vec::new(), last_open_dock_positions: Vec::new(), removing: false, + left_dock_expanded_mode: false, } } diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index 6f1bc083aea10c5e2f6c256f57be1f36dc48bc5e..19cf867d74f2ab57cf246ef86f9c6d144ba8a391 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -786,24 +786,24 @@ fn update_panel_positions( } } -fn find_agent_panel_view(workspace: &Workspace, cx: &App) -> Option> { - for dock in workspace.all_docks() { - let dock = dock.read(cx); - for panel_id in dock.panel_ids() { - if let Some(panel) = dock.panel_for_id(panel_id) { - if panel.panel_key() == agent_ui::AgentPanel::panel_key() { - return Some(panel.clone()); - } - } - } - } - if let Some(left_item) = workspace.left_item() { - if left_item.panel_key() == agent_ui::AgentPanel::panel_key() { - return Some(left_item.clone()); - } - } - None -} +// fn find_agent_panel_view(workspace: &Workspace, cx: &App) -> Option> { +// for dock in workspace.all_docks() { +// let dock = dock.read(cx); +// for panel_id in dock.panel_ids() { +// if let Some(panel) = dock.panel_for_id(panel_id) { +// if panel.panel_key() == agent_ui::AgentPanel::panel_key() { +// return Some(panel.clone()); +// } +// } +// } +// } +// if let Some(left_item) = workspace.left_item() { +// if left_item.panel_key() == agent_ui::AgentPanel::panel_key() { +// return Some(left_item.clone()); +// } +// } +// None +// } fn setup_or_teardown_ai_panel( workspace: &mut Workspace,