Only display experimental diagnostics when enabled
This commit is contained in:
@@ -47,7 +47,7 @@ pub fn diagnostics(
|
||||
String::from("unknown")
|
||||
};
|
||||
println!("processing crate: {}, module: {}", crate_name, _vfs.file_path(file_id));
|
||||
for diagnostic in analysis.diagnostics(file_id).unwrap() {
|
||||
for diagnostic in analysis.diagnostics(file_id, true).unwrap() {
|
||||
if matches!(diagnostic.severity, Severity::Error) {
|
||||
found_error = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user