diff --git a/zed/src/worktree.rs b/zed/src/worktree.rs index 2a924cf58636d2788514d40195906fd8ea9897b5..cc9ced3b711f3c9850ed9dfd685891033476d02b 100644 --- a/zed/src/worktree.rs +++ b/zed/src/worktree.rs @@ -145,6 +145,7 @@ impl Worktree { if self.is_scanning() && !self.poll_scheduled { ctx.spawn(|this, mut ctx| async move { + smol::Timer::after(Duration::from_millis(100)).await; this.update(&mut ctx, |this, ctx| { this.poll_scheduled = false; this.poll_entries(ctx);