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
This commit is contained in:
Danilo Leal 2025-03-03 09:40:01 -03:00 committed by GitHub
parent f24c226af8
commit 06bcc42652
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -336,14 +336,10 @@ impl ContextEditor {
}
fn assist(&mut self, _: &Assist, window: &mut Window, cx: &mut Context<Self>) {
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>) {
self.slash_menu_handle.hide(cx);
self.language_model_selector_menu_handle.hide(cx);
self.send_to_model(RequestType::SuggestEdits, window, cx);
}