ruff/crates/ruff_db/src
Micha Reiser dcb99cc817
Fix stale File status in tests (#15030)
## Summary

Fixes https://github.com/astral-sh/ruff/issues/15027

The `MemoryFileSystem::write_file` API automatically creates
non-existing ancestor directoryes
but we failed to update the status of the now created ancestor
directories in the `Files` data structure.


## Test Plan

Tested that the case in https://github.com/astral-sh/ruff/issues/15027
now passes regardless of whether the *Simple* case is commented out or
not
2024-12-17 12:45:36 +01:00
..
files Setup tracing and document tracing usage (#12730) 2024-08-08 06:28:40 +00:00
system Fix stale File status in tests (#15030) 2024-12-17 12:45:36 +01:00
vendored Setup tracing and document tracing usage (#12730) 2024-08-08 06:28:40 +00:00
diagnostic.rs Support lint:<rule> in mdtests (#14914) 2024-12-11 14:37:12 +01:00
display.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
file_revision.rs Set durabilities for low-durability fields on high-durability inputs (#12627) 2024-08-02 19:42:34 +02:00
files.rs Give non-existent files a durability of at least Medium (#14034) 2024-11-01 16:44:30 +01:00
lib.rs Introduce Diagnostic trait (#14130) 2024-11-07 13:26:21 +01:00
parsed.rs Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
source.rs Introduce Diagnostic trait (#14130) 2024-11-07 13:26:21 +01:00
system.rs Workspace discovery (#14308) 2024-11-15 19:20:15 +01:00
testing.rs Add tracing support to mdtest (#14935) 2024-12-13 09:10:01 +00:00
vendored.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00