Detailed changes
@@ -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.
@@ -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,
- },
}
}
@@ -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: left
pub sidebar_side: Option<SidebarDockPosition>,
/// Default width in pixels when the agent panel is docked to the left or right.
///
@@ -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();