mirror of https://github.com/helix-editor/helix
Use diagnostic.severity to distinguish between error colors.
parent
c7ccb432ef
commit
9dcfe25e4a
@ -1,7 +1,15 @@
|
||||
use crate::Range;
|
||||
|
||||
pub enum Severity {
|
||||
Error,
|
||||
Warning,
|
||||
Info,
|
||||
Hint,
|
||||
}
|
||||
|
||||
pub struct Diagnostic {
|
||||
pub range: (usize, usize),
|
||||
pub line: usize,
|
||||
pub message: String,
|
||||
pub severity: Option<Severity>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue