Visual Studio Code, rebuilt in Rust
Rust
fix(gpui): draw again after a frame that notified views while drawing
rokartur1b25be029150
diff --git a/native/vendor/gpui-fast/crates/gpui/src/window.rs b/native/vendor/gpui-fast/crates/gpui/src/window.rsindex dab26dc5d58..188c750c63d 100644--- a/native/vendor/gpui-fast/crates/gpui/src/window.rs+++ b/native/vendor/gpui-fast/crates/gpui/src/window.rs@@ -4026,6 +4026,12 @@ impl Window {self.reset_cursor_style(cx);self.refreshing = false;self.invalidator.set_phase(DrawPhase::None);+ // VSRustium: a view notified while this frame drew (a size measured in prepaint) waits in `dirty_views`, which+ // only the next frame reads; without one it stays stale until an unrelated event draws. A requested animation+ // frame draws them already, and tests, which deliver none, would otherwise draw an animation forever.+ if !self.invalidator.inner.borrow().dirty_views.is_empty() && self.next_frame_callbacks.borrow().is_empty() {+ self.invalidator.set_dirty(true);+ }crate::fast::layers::hover_freeze::release_unhovered(self, cx);// Focus listeners may move focus (e.g. a dock forwarding focus to its active// panel). `Window::focus` suppresses `refresh` while a draw is in progress, so