mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-09 00:50:04 +03:00
Hide weak worktrees in the file finder
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
2fcf1aee6b
commit
64f5a45397
@ -1324,9 +1324,13 @@ impl Project {
|
||||
cancel_flag: &'a AtomicBool,
|
||||
cx: &AppContext,
|
||||
) -> impl 'a + Future<Output = Vec<PathMatch>> {
|
||||
let include_root_name = self.worktrees.len() > 1;
|
||||
let candidate_sets = self
|
||||
let worktrees = self
|
||||
.worktrees(cx)
|
||||
.filter(|worktree| !worktree.read(cx).is_weak())
|
||||
.collect::<Vec<_>>();
|
||||
let include_root_name = worktrees.len() > 1;
|
||||
let candidate_sets = worktrees
|
||||
.into_iter()
|
||||
.map(|worktree| CandidateSet {
|
||||
snapshot: worktree.read(cx).snapshot(),
|
||||
include_ignored,
|
||||
|
Loading…
Reference in New Issue
Block a user