Make unlinked_file diagnostic a hint again

This commit is contained in:
Jonas Schievink 2021-07-01 19:57:50 +02:00
parent 920b2c8630
commit 69dce13ddd

View File

@ -12,7 +12,7 @@
};
use text_edit::TextEdit;
use crate::{fix, Assist, Diagnostic, DiagnosticsContext};
use crate::{fix, Assist, Diagnostic, DiagnosticsContext, Severity};
// Diagnostic: unlinked-file
//
@ -27,6 +27,7 @@ pub(crate) fn unlinked_file(ctx: &DiagnosticsContext, acc: &mut Vec<Diagnostic>,
acc.push(
Diagnostic::new("unlinked-file", "file not included in module tree", range)
.severity(Severity::WeakWarning)
.with_fixes(fixes(ctx, file_id)),
);
}