[ty] Do not report settings diagnostics in `check_file` (#19206)

This is the trivial first part of
https://github.com/astral-sh/ty/issues/613

Ideally we should surface these elsewhere, but this is definitely Not
the place to surface them.
This commit is contained in:
Aria Desires 2025-07-08 10:18:32 -04:00 committed by GitHub
parent ce2bdb9357
commit 6a42d28867
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 10 deletions

View File

@ -285,16 +285,7 @@ impl Project {
return Vec::new(); return Vec::new();
} }
let mut file_diagnostics: Vec<_> = self self.check_file_impl(db, file)
.settings_diagnostics(db)
.iter()
.map(OptionDiagnostic::to_diagnostic)
.collect();
let check_diagnostics = self.check_file_impl(db, file);
file_diagnostics.extend(check_diagnostics);
file_diagnostics
} }
/// Opens a file in the project. /// Opens a file in the project.