Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Forget which buffers were shared when host reconnects

Antonio Scandurrad7f56d6126fd
diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs
index 88a187982cc..19078f31d77 100644
--- a/crates/project/src/project.rs
+++ b/crates/project/src/project.rs
@@ -1081,6 +1081,7 @@ impl Project {
message: proto::ResharedProject,
cx: &mut ModelContext<Self>,
) -> Result<()> {
+ self.shared_buffers.clear();
self.set_collaborators_from_proto(message.collaborators, cx)?;
let _ = self.metadata_changed(cx);
Ok(())