Be more lenient when looking up gitignored files in file finder (#31457)
The lookup was disabled due to concerns of being forced to traverse many gitignored file entries. Since Zed does not index these eagerly, but only contents of the directories that are parent to the gitignored file entries, it might be not that bad — let's see how much improvement it provides. Closes https://github.com/zed-industries/zed/issues/31016 Release Notes: - Improved file finder to include indexed gitignored files in its search results
This commit is contained in:
parent
534bb0620d
commit
5b320d6714
2 changed files with 79 additions and 10 deletions
|
@ -779,9 +779,7 @@ impl FileFinderDelegate {
|
|||
let worktree = worktree.read(cx);
|
||||
PathMatchCandidateSet {
|
||||
snapshot: worktree.snapshot(),
|
||||
include_ignored: worktree
|
||||
.root_entry()
|
||||
.map_or(false, |entry| entry.is_ignored),
|
||||
include_ignored: true,
|
||||
include_root_name,
|
||||
candidates: project::Candidates::Files,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue