Allow search assistant editors
This commit is contained in:
parent
7a78e64831
commit
a6feaf1300
1 changed files with 9 additions and 0 deletions
|
@ -221,6 +221,8 @@ impl AssistantPanel {
|
||||||
cx.focus_self();
|
cx.focus_self();
|
||||||
cx.notify();
|
cx.notify();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
cx.propagate_action();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1144,6 +1146,13 @@ impl Item for AssistantEditor {
|
||||||
fn tab_tooltip_text(&self, cx: &AppContext) -> Option<Cow<str>> {
|
fn tab_tooltip_text(&self, cx: &AppContext) -> Option<Cow<str>> {
|
||||||
Some(self.title(cx).into())
|
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)]
|
#[derive(Debug)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue