Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Allow opening excerpts from proposed changes editor (#18591)
Marshall Bowers280b8a89ea13
diff --git a/crates/editor/src/proposed_changes_editor.rs b/crates/editor/src/proposed_changes_editor.rsindex ec0c05d8838..a791e87e620 100644--- a/crates/editor/src/proposed_changes_editor.rs+++ b/crates/editor/src/proposed_changes_editor.rs@@ -11,7 +11,7 @@ use text::ToOffset;use ui::prelude::*;use workspace::{searchable::SearchableItemHandle, Item, ItemHandle as _, ToolbarItemEvent, ToolbarItemLocation,- ToolbarItemView,+ ToolbarItemView, Workspace,};pub struct ProposedChangesEditor {@@ -159,6 +159,11 @@ impl Item for ProposedChangesEditor {None}}++ fn added_to_workspace(&mut self, workspace: &mut Workspace, cx: &mut ViewContext<Self>) {+ self.editor+ .update(cx, |editor, cx| editor.added_to_workspace(workspace, cx));+ }}impl ProposedChangesEditorToolbar {