mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-09 10:56:20 +00:00
editor: Allow opening excerpts from proposed changes editor (#18591)
This PR adds the ability to open excerpts in the base buffer from the proposed changes editor. Release Notes: - N/A
This commit is contained in:
parent
051627c449
commit
280b8a89ea
1 changed files with 6 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue