mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Drop project's buffers when closing a remote project
This commit is contained in:
parent
5a4fa4b11e
commit
576a9bb92c
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue