Make unlinked_file diagnostic a hint again
This commit is contained in:
parent
920b2c8630
commit
69dce13ddd
@ -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)),
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user