project search: Skip loading of gitignored paths when their descendants will never match an inclusion/exclusion query (#42968)

Co-authored-by: dino <dinojoaocosta@gmail.com>

Related-to: #38799

Release Notes:

- Improved project search performance with "Also search files ignored by
configuration" combined with file inclusion/exclusion queries.

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
This commit is contained in:
Piotr Osiewicz
2025-11-20 18:44:55 +01:00
committed by GitHub
co-authored by dino
parent 2a40dcfd77
commit 58fe19d55e
4 changed files with 292 additions and 13 deletions
Generated
+45
View File
@@ -3668,6 +3668,26 @@ dependencies = [
"tiny-keccak",
]
[[package]]
name = "const_format"
version = "0.2.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7faa7469a93a566e9ccc1c73fe783b4a65c274c5ace346038dca9c39fe0030ad"
dependencies = [
"const_format_proc_macros",
]
[[package]]
name = "const_format_proc_macros"
version = "0.2.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744"
dependencies = [
"proc-macro2",
"quote",
"unicode-xid",
]
[[package]]
name = "constant_time_eq"
version = "0.1.5"
@@ -12752,6 +12772,15 @@ version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5da3b0203fd7ee5720aa0b5e790b591aa5d3f41c3ed2c34a3a393382198af2f7"
[[package]]
name = "pori"
version = "0.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4a63d338dec139f56dacc692ca63ad35a6be6a797442479b55acd611d79e906"
dependencies = [
"nom 7.1.3",
]
[[package]]
name = "portable-atomic"
version = "1.11.1"
@@ -13068,6 +13097,7 @@ dependencies = [
"url",
"util",
"watch",
"wax",
"which 6.0.3",
"worktree",
"zeroize",
@@ -19492,6 +19522,21 @@ dependencies = [
"zlog",
]
[[package]]
name = "wax"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d12a78aa0bab22d2f26ed1a96df7ab58e8a93506a3e20adb47c51a93b4e1357"
dependencies = [
"const_format",
"itertools 0.11.0",
"nom 7.1.3",
"pori",
"regex",
"thiserror 1.0.69",
"walkdir",
]
[[package]]
name = "wayland-backend"
version = "0.3.11"