Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Checkpoint
Antonio Scandurra68bc22f9cd48
diff --git a/crates/gpui3/src/elements/div.rs b/crates/gpui3/src/elements/div.rsindex 14f1757c3f0..bef0478e7fa 100644--- a/crates/gpui3/src/elements/div.rs+++ b/crates/gpui3/src/elements/div.rs@@ -2,8 +2,8 @@ use crate::{AnyElement, BorrowWindow, Bounds, Element, ElementFocus, ElementId, ElementInteraction,FocusDisabled, FocusEnabled, FocusHandle, FocusListeners, Focusable, GlobalElementId,GroupBounds, InteractiveElementState, IntoAnyElement, LayoutId, Overflow, ParentElement,- Pixels, Point, SharedString, StatefulInteractivity, StatefullyInteractive,- StatelessInteraction, StatelesslyInteractive, Style, StyleRefinement, Styled, ViewContext,+ Pixels, Point, SharedString, StatefulInteractive, StatefulInteractivity, StatelessInteraction,+ StatelessInteractive, Style, StyleRefinement, Styled, ViewContext,};use parking_lot::Mutex;use refineable::Refineable;@@ -320,7 +320,7 @@ where}}-impl<V, I, F> StatelesslyInteractive for Div<V, I, F>+impl<V, I, F> StatelessInteractive for Div<V, I, F>whereI: ElementInteraction<V>,F: ElementFocus<V>,@@ -331,7 +331,7 @@ where}}-impl<V, F> StatefullyInteractive for Div<V, StatefulInteractivity<V>, F>+impl<V, F> StatefulInteractive for Div<V, StatefulInteractivity<V>, F>whereF: ElementFocus<V>,V: 'static + Send + Sync,diff --git a/crates/gpui3/src/elements/img.rs b/crates/gpui3/src/elements/img.rsindex d478ca35e6a..ff00d40a58b 100644--- a/crates/gpui3/src/elements/img.rs+++ b/crates/gpui3/src/elements/img.rs@@ -1,8 +1,8 @@use crate::{div, AnyElement, BorrowWindow, Bounds, Div, Element, ElementFocus, ElementId,ElementInteraction, FocusDisabled, FocusEnabled, FocusListeners, Focusable,- InteractiveElementState, IntoAnyElement, LayoutId, Pixels, SharedString, StatefulInteractivity,- StatefullyInteractive, StatelessInteraction, StatelesslyInteractive, StyleRefinement, Styled,+ InteractiveElementState, IntoAnyElement, LayoutId, Pixels, SharedString, StatefulInteractive,+ StatefulInteractivity, StatelessInteraction, StatelessInteractive, StyleRefinement, Styled,ViewContext,};use futures::FutureExt;@@ -151,7 +151,7 @@ where}}-impl<V, I, F> StatelesslyInteractive for Img<V, I, F>+impl<V, I, F> StatelessInteractive for Img<V, I, F>whereV: 'static + Send + Sync,I: ElementInteraction<V>,@@ -162,7 +162,7 @@ where}}-impl<V, F> StatefullyInteractive for Img<V, StatefulInteractivity<V>, F>+impl<V, F> StatefulInteractive for Img<V, StatefulInteractivity<V>, F>whereV: 'static + Send + Sync,F: ElementFocus<V>,diff --git a/crates/gpui3/src/elements/svg.rs b/crates/gpui3/src/elements/svg.rsindex efd8031577d..941ad5a5293 100644--- a/crates/gpui3/src/elements/svg.rs+++ b/crates/gpui3/src/elements/svg.rs@@ -1,8 +1,8 @@use crate::{div, AnyElement, Bounds, Div, Element, ElementFocus, ElementId, ElementInteraction,FocusDisabled, FocusEnabled, FocusListeners, Focusable, InteractiveElementState,- IntoAnyElement, LayoutId, Pixels, SharedString, StatefulInteractivity, StatefullyInteractive,- StatelessInteraction, StatelesslyInteractive, StyleRefinement, Styled, ViewContext,+ IntoAnyElement, LayoutId, Pixels, SharedString, StatefulInteractive, StatefulInteractivity,+ StatelessInteraction, StatelessInteractive, StyleRefinement, Styled, ViewContext,};use util::ResultExt;@@ -124,7 +124,7 @@ where}}-impl<V, I, F> StatelesslyInteractive for Svg<V, I, F>+impl<V, I, F> StatelessInteractive for Svg<V, I, F>whereV: 'static + Send + Sync,I: ElementInteraction<V>,@@ -135,7 +135,7 @@ where}}-impl<V, F> StatefullyInteractive for Svg<V, StatefulInteractivity<V>, F>+impl<V, F> StatefulInteractive for Svg<V, StatefulInteractivity<V>, F>whereV: 'static + Send + Sync,F: ElementFocus<V>,diff --git a/crates/gpui3/src/interactive.rs b/crates/gpui3/src/interactive.rsindex c917a1aaac9..6b7f2099f42 100644--- a/crates/gpui3/src/interactive.rs+++ b/crates/gpui3/src/interactive.rs@@ -9,7 +9,7 @@ use std::{sync::Arc,};-pub trait StatelesslyInteractive: Element {+pub trait StatelessInteractive: Element {fn stateless_interactivity(&mut self) -> &mut StatelessInteraction<Self::ViewState>;fn on_mouse_down(@@ -239,7 +239,7 @@ pub trait StatelesslyInteractive: Element {}}-pub trait StatefullyInteractive: StatelesslyInteractive {+pub trait StatefulInteractive: StatelessInteractive {fn stateful_interactivity(&mut self) -> &mut StatefulInteractivity<Self::ViewState>;fn active(mut self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Selfdiff --git a/crates/storybook2/src/stories/focus.rs b/crates/storybook2/src/stories/focus.rsindex 0690541d254..48b5dbd54f2 100644--- a/crates/storybook2/src/stories/focus.rs+++ b/crates/storybook2/src/stories/focus.rs@@ -1,7 +1,7 @@use crate::themes::rose_pine;use gpui3::{- div, view, Action, Context, Focusable, KeyBinding, ParentElement, StatelesslyInteractive,- Styled, View, WindowContext,+ div, view, Action, Context, Focusable, KeyBinding, ParentElement, StatelessInteractive, Styled,+ View, WindowContext,};use std::any::Any;diff --git a/crates/ui2/src/prelude.rs b/crates/ui2/src/prelude.rsindex 23d9e216c1a..28950553746 100644--- a/crates/ui2/src/prelude.rs+++ b/crates/ui2/src/prelude.rs@@ -1,6 +1,6 @@pub use gpui3::{- div, Element, IntoAnyElement, ParentElement, ScrollState, SharedString, StatefullyInteractive,- StatelesslyInteractive, Styled, ViewContext, WindowContext,+ div, Element, IntoAnyElement, ParentElement, ScrollState, SharedString, StatefulInteractive,+ StatelessInteractive, Styled, ViewContext, WindowContext,};use crate::settings::user_settings;