diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rs index a67d1fb9d07bd68f30c8ecedc41dba5ec00afa07..c891e70f684d00c928080494a8dcae369f01b26f 100644 --- a/crates/sidebar/src/sidebar.rs +++ b/crates/sidebar/src/sidebar.rs @@ -45,29 +45,10 @@ use workspace::{ use zed_actions::OpenRecent; use zed_actions::editor::{MoveDown, MoveUp}; -use zed_actions::agents_sidebar::FocusSidebarFilter; - -gpui::actions!( - agents_sidebar, - [ - /// Creates a new thread in the currently selected or active project group. - NewThreadInGroup, - /// Toggles between the thread list and the archive view. - ToggleArchive, - /// Closes the currently selected workspace. - RemoveSelectedWorkspace, - /// Removes the selected entry: archives a thread or closes a workspace. - RemoveSelected, - /// Stops the currently selected running thread. - StopSelectedThread, - /// Activates the workspace that owns the currently selected entry. - ActivateSelectedWorkspace, - /// Expands the selected group to show more threads. - ShowMoreThreads, - /// Collapses expanded threads in the selected group back to the default count. - ShowFewerThreads, - ] -); +use zed_actions::agents_sidebar::{ + ActivateSelectedWorkspace, FocusSidebarFilter, NewThreadInGroup, RemoveSelected, + RemoveSelectedWorkspace, ShowFewerThreads, ShowMoreThreads, StopSelectedThread, ToggleArchive, +}; const DEFAULT_WIDTH: Pixels = px(300.0); const MIN_WIDTH: Pixels = px(200.0); diff --git a/crates/zed_actions/src/lib.rs b/crates/zed_actions/src/lib.rs index f64df42e050023f9f8615dc468e7c3459a4af063..bd487ba6dfb58be871b677fe426b1adbfed9d962 100644 --- a/crates/zed_actions/src/lib.rs +++ b/crates/zed_actions/src/lib.rs @@ -788,6 +788,22 @@ pub mod agents_sidebar { FocusSidebarFilter, /// Moves the active workspace to a new window. MoveWorkspaceToNewWindow, + /// Creates a new thread in the currently selected or active project group. + NewThreadInGroup, + /// Toggles between the thread list and the archive view. + ToggleArchive, + /// Closes the currently selected workspace. + RemoveSelectedWorkspace, + /// Removes the selected entry: archives a thread or closes a workspace. + RemoveSelected, + /// Stops the currently selected running thread. + StopSelectedThread, + /// Activates the workspace that owns the currently selected entry. + ActivateSelectedWorkspace, + /// Expands the selected group to show more threads. + ShowMoreThreads, + /// Collapses expanded threads in the selected group back to the default count. + ShowFewerThreads, ] ); }