Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant: Fix inline assistant not working for non-terminal panel views (#15864)
Bennet Bo Fenner2e27448d5f9e
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rsindex 67b5fb303c4..9ccd8356fcd 100644--- a/crates/assistant/src/assistant_panel.rs+++ b/crates/assistant/src/assistant_panel.rs@@ -813,6 +813,11 @@ impl AssistantPanel {.and_then(|item| item.act_as::<Editor>(cx)){Some(InlineAssistTarget::Editor(workspace_editor, true))+ } else if let Some(terminal_view) = workspace+ .active_item(cx)+ .and_then(|item| item.act_as::<TerminalView>(cx))+ {+ Some(InlineAssistTarget::Terminal(terminal_view))} else {None}