Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Apply `BufferReloaded` message to incomplete remote buffers
Antonio Scandurra7f73ebdab568
diff --git a/crates/project/src/project.rs b/crates/project/src/project.rsindex f915d53c01e..fd10e17bbf5 100644--- a/crates/project/src/project.rs+++ b/crates/project/src/project.rs@@ -6310,7 +6310,13 @@ impl Project {let buffer = this.opened_buffers.get(&payload.buffer_id)- .and_then(|buffer| buffer.upgrade(cx));+ .and_then(|buffer| buffer.upgrade(cx))+ .or_else(|| {+ this.incomplete_remote_buffers+ .get(&payload.buffer_id)+ .cloned()+ .flatten()+ });if let Some(buffer) = buffer {buffer.update(cx, |buffer, cx| {buffer.did_reload(version, fingerprint, line_ending, mtime, cx);