Remove weak worktrees from project when nobody references them

Also, avoid showing them in the project panel as well as in the
contacts panel.
This commit is contained in:
Antonio Scandurra 2022-01-21 13:37:52 +01:00
parent ee95775b1c
commit 6e7e86e491
10 changed files with 261 additions and 170 deletions

View file

@ -764,9 +764,9 @@ mod tests {
)
.await;
let worktree = project
let (worktree, _) = project
.update(&mut cx, |project, cx| {
project.add_local_worktree("/test", cx)
project.find_or_create_worktree_for_abs_path("/test", false, cx)
})
.await
.unwrap();