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