Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove follow agent setting (#52775)
Mikayla Maki6120452e63e3
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex c9664980a34..6c0b4e1eca2 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -947,8 +947,8 @@//// Default: true"flexible": true,- // Where to position the sidebar. Can be 'left', 'right', or 'follow_agent'.- "sidebar_side": "follow_agent",+ // Where to position the sidebar. Can be 'left' or 'right'.+ "sidebar_side": "left",// Default width when the agent panel is docked to the left or right."default_width": 640,// Default height when the agent panel is docked to the bottom.diff --git a/crates/agent_settings/src/agent_settings.rs b/crates/agent_settings/src/agent_settings.rsindex 258293ee65d..5ba7a95b3a2 100644--- a/crates/agent_settings/src/agent_settings.rs+++ b/crates/agent_settings/src/agent_settings.rs@@ -85,10 +85,6 @@ impl AgentSettings {match self.sidebar_side {SidebarDockPosition::Left => SidebarSide::Left,SidebarDockPosition::Right => SidebarSide::Right,- SidebarDockPosition::FollowAgent => match self.dock {- DockPosition::Right => SidebarSide::Right,- _ => SidebarSide::Left,- },}}diff --git a/crates/settings_content/src/agent.rs b/crates/settings_content/src/agent.rsindex dc5395bba80..716e5fea3d4 100644--- a/crates/settings_content/src/agent.rs+++ b/crates/settings_content/src/agent.rs@@ -51,12 +51,10 @@ pub enum NewThreadLocation {#[serde(rename_all = "snake_case")]pub enum SidebarDockPosition {/// Always show the sidebar on the left side.+ #[default]Left,/// Always show the sidebar on the right side.Right,- /// Show the sidebar on the same side as the agent panel.- #[default]- FollowAgent,}#[derive(Copy, Clone, Debug, Default, PartialEq, Eq)]@@ -115,7 +113,7 @@ pub struct AgentSettingsContent {pub flexible: Option<bool>,/// Where to position the sidebar.///- /// Default: follow_agent+ /// Default: leftpub sidebar_side: Option<SidebarDockPosition>,/// Default width in pixels when the agent panel is docked to the left or right.///diff --git a/crates/workspace/src/multi_workspace.rs b/crates/workspace/src/multi_workspace.rsindex ae3af8046be..276b7a8ddd0 100644--- a/crates/workspace/src/multi_workspace.rs+++ b/crates/workspace/src/multi_workspace.rs@@ -58,10 +58,9 @@ pub fn sidebar_side_context_menu(right_click_menu(id).menu(move |window, cx| {let fs = <dyn fs::Fs>::global(cx);ContextMenu::build(window, cx, move |mut menu, _, _cx| {- let positions: [(SidebarDockPosition, &str); 3] = [+ let positions: [(SidebarDockPosition, &str); 2] = [(SidebarDockPosition::Left, "Left"),(SidebarDockPosition::Right, "Right"),- (SidebarDockPosition::FollowAgent, "Follow Agent Panel"),];for (position, label) in positions {let fs = fs.clone();