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:
parent
ee95775b1c
commit
6e7e86e491
10 changed files with 261 additions and 170 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue