Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
WIP
Antonio Scandurrab9ce186d21e0
diff --git a/crates/gpui2/src/view.rs b/crates/gpui2/src/view.rsindex e3e89b2add0..897026267f9 100644--- a/crates/gpui2/src/view.rs+++ b/crates/gpui2/src/view.rs@@ -57,6 +57,13 @@ impl<V: 'static> View<V> {{cx.update_view(self, f)}++ pub fn read<C>(&self, cx: &mut C) -> &V+ where+ C: VisualContext,+ {+ todo!()+ }}impl<V> Clone for View<V> {diff --git a/crates/workspace2/src/item.rs b/crates/workspace2/src/item.rsindex d359427053e..aedbcd83939 100644--- a/crates/workspace2/src/item.rs+++ b/crates/workspace2/src/item.rs@@ -159,9 +159,9 @@ pub trait Item: EventEmitter + Sized {// ) -> Task<Result<()>> {// unimplemented!("reload() must be implemented if can_save() returns true")// }- // fn to_item_events(_event: &Self::Event) -> SmallVec<[ItemEvent; 2]> {- // SmallVec::new()- // }+ fn to_item_events(_event: &Self::Event) -> SmallVec<[ItemEvent; 2]> {+ SmallVec::new()+ }// fn should_close_item_on_event(_: &Self::Event) -> bool {// false// }