mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 20:32:22 +03:00
Apply BufferReloaded
message to incomplete remote buffers
This commit is contained in:
parent
acbf9b55d7
commit
7f73ebdab5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user