agent: Remove unused agent: chat mode command palette action (#29741)

We weren't using this one anymore. We used to use it for the switch that
toggled tools on, which doesn't exist anymore.

Release Notes:

- N/A

---------

Co-authored-by: Joseph T. Lyons <josephtlyons@gmail.com>
This commit is contained in:
Danilo Leal 2025-05-01 15:09:14 -03:00 committed by GitHub
parent 24eb039752
commit 39dd133b1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 9 deletions

View file

@ -248,7 +248,6 @@
"ctrl-shift-o": "agent::ToggleNavigationMenu", "ctrl-shift-o": "agent::ToggleNavigationMenu",
"ctrl-shift-i": "agent::ToggleOptionsMenu", "ctrl-shift-i": "agent::ToggleOptionsMenu",
"shift-escape": "agent::ExpandMessageEditor", "shift-escape": "agent::ExpandMessageEditor",
"ctrl-e": "agent::ChatMode",
"ctrl-alt-e": "agent::RemoveAllContext" "ctrl-alt-e": "agent::RemoveAllContext"
} }
}, },

View file

@ -293,7 +293,6 @@
"cmd-shift-o": "agent::ToggleNavigationMenu", "cmd-shift-o": "agent::ToggleNavigationMenu",
"cmd-shift-i": "agent::ToggleOptionsMenu", "cmd-shift-i": "agent::ToggleOptionsMenu",
"shift-escape": "agent::ExpandMessageEditor", "shift-escape": "agent::ExpandMessageEditor",
"cmd-e": "agent::ChatMode",
"cmd-alt-e": "agent::RemoveAllContext" "cmd-alt-e": "agent::RemoveAllContext"
} }
}, },

View file

@ -62,7 +62,6 @@ actions!(
AddContextServer, AddContextServer,
RemoveSelectedThread, RemoveSelectedThread,
Chat, Chat,
ChatMode,
CycleNextInlineAssist, CycleNextInlineAssist,
CyclePreviousInlineAssist, CyclePreviousInlineAssist,
FocusUp, FocusUp,

View file

@ -42,7 +42,7 @@ use crate::profile_selector::ProfileSelector;
use crate::thread::{Thread, TokenUsageRatio}; use crate::thread::{Thread, TokenUsageRatio};
use crate::thread_store::ThreadStore; use crate::thread_store::ThreadStore;
use crate::{ use crate::{
AgentDiff, Chat, ChatMode, ExpandMessageEditor, NewThread, OpenAgentDiff, RemoveAllContext, AgentDiff, Chat, ExpandMessageEditor, NewThread, OpenAgentDiff, RemoveAllContext,
ToggleContextPicker, ToggleProfileSelector, ToggleContextPicker, ToggleProfileSelector,
}; };
@ -206,10 +206,6 @@ impl MessageEditor {
&self.context_store &self.context_store
} }
fn toggle_chat_mode(&mut self, _: &ChatMode, _window: &mut Window, cx: &mut Context<Self>) {
cx.notify();
}
pub fn expand_message_editor( pub fn expand_message_editor(
&mut self, &mut self,
_: &ExpandMessageEditor, _: &ExpandMessageEditor,
@ -499,7 +495,6 @@ impl MessageEditor {
.on_action(cx.listener(Self::toggle_context_picker)) .on_action(cx.listener(Self::toggle_context_picker))
.on_action(cx.listener(Self::remove_all_context)) .on_action(cx.listener(Self::remove_all_context))
.on_action(cx.listener(Self::move_up)) .on_action(cx.listener(Self::move_up))
.on_action(cx.listener(Self::toggle_chat_mode))
.on_action(cx.listener(Self::expand_message_editor)) .on_action(cx.listener(Self::expand_message_editor))
.capture_action(cx.listener(Self::paste)) .capture_action(cx.listener(Self::paste))
.gap_2() .gap_2()