Apply worktree updates in the order they were received

Antonio Scandurra created

Change summary

crates/project/src/worktree.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/project/src/worktree.rs 🔗

@@ -818,7 +818,7 @@ impl RemoteWorktree {
     ) -> Result<()> {
         let mut tx = self.updates_tx.clone();
         let payload = envelope.payload.clone();
-        cx.background()
+        cx.foreground()
             .spawn(async move {
                 tx.send(payload).await.expect("receiver runs to completion");
             })