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.

add scan_complete await

Mikayla Maki8ca1a7d43d44
diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs
index efb898bd6c9..8972a556049 100644
--- a/crates/project/src/worktree.rs
+++ b/crates/project/src/worktree.rs
@@ -5387,6 +5387,9 @@ mod tests {
.await
.unwrap();
+ cx.read(|cx| tree.read(cx).as_local().unwrap().scan_complete())
+ .await;
+
cx.foreground().run_until_parked();
let snapshot = tree.read_with(cx, |tree, _| tree.snapshot());