Merge remote-tracking branch 'origin/main' into assistant-2

This commit is contained in:
Antonio Scandurra
2023-12-06 12:53:02 +01:00
59 changed files with 4270 additions and 1325 deletions
@@ -736,6 +736,8 @@ impl InputHandler for TerminalView {
}
impl Item for TerminalView {
type Event = ItemEvent;
fn tab_tooltip_text(&self, cx: &AppContext) -> Option<SharedString> {
Some(self.terminal().read(cx).title().into())
}
@@ -843,6 +845,10 @@ impl Item for TerminalView {
// .detach();
self.workspace_id = workspace.database_id();
}
fn to_item_events(event: &Self::Event, mut f: impl FnMut(ItemEvent)) {
f(*event)
}
}
impl SearchableItem for TerminalView {
@@ -1170,6 +1176,7 @@ mod tests {
})
})
.await
.unwrap()
.unwrap();
(wt, entry)