diff --git a/zed/src/worktree.rs b/zed/src/worktree.rs index d24c1b412eb8596dd30088a21f8eb2b1d5b497df..723487ad4ae00640bddb032520374a3668199653 100644 --- a/zed/src/worktree.rs +++ b/zed/src/worktree.rs @@ -1639,7 +1639,7 @@ impl File { Worktree::Remote(worktree) => { let rpc = worktree.rpc.clone(); let worktree_id = worktree.remote_id; - cx.background().spawn(async move { + cx.foreground().spawn(async move { let response = rpc .request(proto::SaveBuffer { worktree_id,