Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Allow search assistant editors

Antonio Scandurraa6feaf1300c3
diff --git a/crates/ai/src/assistant.rs b/crates/ai/src/assistant.rs
index 7f387194b35..aee224e420e 100644
--- a/crates/ai/src/assistant.rs
+++ b/crates/ai/src/assistant.rs
@@ -221,6 +221,8 @@ impl AssistantPanel {
cx.focus_self();
cx.notify();
}
+ } else {
+ cx.propagate_action();
}
}
@@ -1144,6 +1146,13 @@ impl Item for AssistantEditor {
fn tab_tooltip_text(&self, cx: &AppContext) -> Option<Cow<str>> {
Some(self.title(cx).into())
}
+
+ fn as_searchable(
+ &self,
+ _: &ViewHandle<Self>,
+ ) -> Option<Box<dyn workspace::searchable::SearchableItemHandle>> {
+ Some(Box::new(self.editor.clone()))
+ }
}
#[derive(Debug)]