mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 04:20:46 +00:00
Store ops if buffer handle can't be upgraded and buffer requests are in-flight
This commit is contained in:
parent
a6613d5345
commit
8fa23c702c
1 changed files with 2 additions and 0 deletions
|
@ -2523,6 +2523,8 @@ impl Project {
|
|||
OpenBuffer::Loaded(buffer) => {
|
||||
if let Some(buffer) = buffer.upgrade(cx) {
|
||||
buffer.update(cx, |buffer, cx| buffer.apply_ops(ops, cx))?;
|
||||
} else if is_remote && buffer_request_count > 0 {
|
||||
e.insert(OpenBuffer::Loading(ops));
|
||||
}
|
||||
}
|
||||
OpenBuffer::Loading(operations) => operations.extend_from_slice(&ops),
|
||||
|
|
Loading…
Reference in a new issue