diff --git a/crates/ruff_db/src/files.rs b/crates/ruff_db/src/files.rs index 64021902cbf1a..ed257efc135ee 100644 --- a/crates/ruff_db/src/files.rs +++ b/crates/ruff_db/src/files.rs @@ -102,7 +102,9 @@ impl Files { Ok(metadata) if metadata.file_type().is_directory() => { builder.status(FileStatus::IsADirectory) } - _ => builder.status(FileStatus::NotFound), + _ => builder + .status(FileStatus::NotFound) + .status_durability(Durability::MEDIUM.max(durability)), }; builder.new(db)