Clear shared buffers when unsharing projects
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
469ee554a0
commit
afa33c958b
1 changed files with 1 additions and 0 deletions
|
@ -462,6 +462,7 @@ impl Project {
|
|||
rpc.send(proto::UnshareProject { project_id }).await?;
|
||||
this.update(&mut cx, |this, cx| {
|
||||
this.collaborators.clear();
|
||||
this.shared_buffers.clear();
|
||||
for worktree in this.worktrees(cx).collect::<Vec<_>>() {
|
||||
worktree.update(cx, |worktree, _| {
|
||||
worktree.as_local_mut().unwrap().unshare();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue