mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
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:
parent
6288ac2e21
commit
266867b516
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue