Support assistant: quote selection on multibuffers (#2682)

Fixes
https://linear.app/zed-industries/issue/Z-2430/assistant-quote-selection-does-not-work-in-multi-buffer

Release Notes:

- Added support for invoking `assistant: quote selection` (`cmd->`) when
editing a multi-buffer.
This commit is contained in:
Antonio Scandurra 2023-07-05 11:49:03 +02:00 committed by GitHub
commit 5505ebf4bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1911,7 +1911,7 @@ impl ConversationEditor {
let Some(panel) = workspace.panel::<AssistantPanel>(cx) else {
return;
};
let Some(editor) = workspace.active_item(cx).and_then(|item| item.downcast::<Editor>()) else {
let Some(editor) = workspace.active_item(cx).and_then(|item| item.act_as::<Editor>(cx)) else {
return;
};