Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Merge branch 'main' into guest-promotion

Conrad Irwin276bfa0fab2b
diff --cc crates/gpui/src/app/test_context.rs
index 6ec37afb0fc,de31339b8d7..2b6c361a782
--- a/crates/gpui/src/app/test_context.rs
+++ b/crates/gpui/src/app/test_context.rs
@@@ -238,10 -278,7 +278,12 @@@ impl TestAppContext
}
}
++ /// Wait until there are no more pending tasks.
+ pub fn run_until_parked(&mut self) {
+ self.background_executor.run_until_parked()
+ }
+
+ /// Simulate dispatching an action to the currently focused node in the window.
pub fn dispatch_action<A>(&mut self, window: AnyWindowHandle, action: A)
where
A: Action,