Change summary
crates/editor/src/proposed_changes_editor.rs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Detailed changes
@@ -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 {