ruff
92eee816 - [ty] Fix file root matching for `/`

Commit
13 hours ago
[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
Author
Committer
Parents
Loading