SSH Remoting: Fix reload/save race (#19519)

Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Mikayla Maki
2024-10-21 11:23:19 -07:00
committed by GitHub
co-authored by Conrad Irwin
parent 755fd695f5
commit bae85d858e
5 changed files with 27 additions and 9 deletions
+6
View File
@@ -2312,6 +2312,12 @@ impl Project {
let buffer_id = buffer.read(cx).remote_id();
match event {
BufferEvent::ReloadNeeded => {
if !self.is_via_collab() {
self.reload_buffers([buffer.clone()].into_iter().collect(), false, cx)
.detach_and_log_err(cx);
}
}
BufferEvent::Operation {
operation,
is_local: true,