ruff/crates/ruff_db/src
Andrew Gallant 92eee816ed [ty] Fix file root matching for `/`
Previously, we would always add `/{*filepath}` as our wildcard to match
descendant paths. But when the root is just `/` (as it can be in tests,
weird environments or in the ty playground), this causes a double `/`
and inhibits most descendant matches.

The regression test added in this commit fails without this fix.
Specifically, it panics because it can't find a file root for
`/project`.

Fixes #1277
2025-10-03 08:18:03 -04:00
..
diagnostic Display diffs for `ruff format --check` and add support for different output formats (#20443) 2025-09-30 12:00:51 -04:00
files [ty] Fix file root matching for `/` 2025-10-03 08:18:03 -04:00
system update `get-size2` to 0.7.0 2025-09-22 17:37:46 -04:00
vendored update `get-size2` to 0.7.0 2025-09-22 17:37:46 -04:00
display.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
file_revision.rs [ty] Track heap usage of salsa structs (#19790) 2025-08-12 13:28:44 +02:00
files.rs [ty] Speedup project file discovery (#19913) 2025-08-14 19:38:39 +01:00
lib.rs [ty] Disallow std::env and io methods in most ty crates (#20046) 2025-08-22 11:13:47 -07:00
panic.rs Display diffs for `ruff format --check` and add support for different output formats (#20443) 2025-09-30 12:00:51 -04:00
parsed.rs [ty] Shrink size of `AstNodeRef` (#20028) 2025-08-22 17:03:22 -04:00
source.rs [ty] Avoid overcounting shared memory usage (#19773) 2025-08-06 15:32:02 -04:00
system.rs [ty] Disallow std::env and io methods in most ty crates (#20046) 2025-08-22 11:13:47 -07:00
testing.rs Update salsa past generational id change (#18362) 2025-05-30 15:31:33 +02:00
vendored.rs Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00