From 06bcc4265291e184628047cae773d88f0b470285 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Mon, 3 Mar 2025 09:40:01 -0300 Subject: [PATCH] Revert "assistant_context_editor: Close menus on send (#25440)" (#25916) Reverting https://github.com/zed-industries/zed/pull/25440 This is a good change, but given the PR was open for a while, I guess it didn't catch conflicts with main, and so it broke it. Will revert it for now, to keep main fresh, but will look into adding this behavior back again. Release Notes: - N/A --- crates/assistant_context_editor/src/context_editor.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/assistant_context_editor/src/context_editor.rs b/crates/assistant_context_editor/src/context_editor.rs index 02f2bc9837..d47b800536 100644 --- a/crates/assistant_context_editor/src/context_editor.rs +++ b/crates/assistant_context_editor/src/context_editor.rs @@ -336,14 +336,10 @@ impl ContextEditor { } fn assist(&mut self, _: &Assist, window: &mut Window, cx: &mut Context) { - self.slash_menu_handle.hide(cx); - self.language_model_selector_menu_handle.hide(cx); self.send_to_model(RequestType::Chat, window, cx); } fn edit(&mut self, _: &Edit, window: &mut Window, cx: &mut Context) { - self.slash_menu_handle.hide(cx); - self.language_model_selector_menu_handle.hide(cx); self.send_to_model(RequestType::SuggestEdits, window, cx); }