Use Diagnostic struct in buffer's diagnostics multimap
This commit is contained in:
parent
1aee7bdb1d
commit
78d97a3db2
3 changed files with 64 additions and 51 deletions
|
@ -3551,11 +3551,13 @@ mod tests {
|
|||
.collect::<Vec<_>>();
|
||||
assert_eq!(
|
||||
diagnostics,
|
||||
&[Diagnostic {
|
||||
range: Point::new(0, 9)..Point::new(0, 10),
|
||||
severity: lsp::DiagnosticSeverity::ERROR,
|
||||
message: "undefined variable 'A'".to_string()
|
||||
}]
|
||||
&[(
|
||||
Point::new(0, 9)..Point::new(0, 10),
|
||||
&Diagnostic {
|
||||
severity: lsp::DiagnosticSeverity::ERROR,
|
||||
message: "undefined variable 'A'".to_string()
|
||||
}
|
||||
)]
|
||||
)
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue