Send SaveBuffer message on foreground thread
This ensures that it gets sent *after* any other messages for which we have already spawned a foreground send. Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
6288ac2e21
commit
266867b516
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user