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.

Drop project's buffers when closing a remote project

Max Brunsfeld576a9bb92cd5
diff --git a/crates/collab/src/tests/randomized_integration_tests.rs b/crates/collab/src/tests/randomized_integration_tests.rs
index 34ae96e6656..cd51a2e1f81 100644
--- a/crates/collab/src/tests/randomized_integration_tests.rs
+++ b/crates/collab/src/tests/randomized_integration_tests.rs
@@ -597,6 +597,7 @@ async fn apply_client_operation(
.unwrap();
cx.update(|_| {
client.remote_projects_mut().remove(ix);
+ client.buffers().retain(|project, _| project != project);
drop(project);
});
}