Use Diagnostic struct in buffer's diagnostics multimap

This commit is contained in:
Max Brunsfeld 2021-11-01 12:59:01 -07:00
parent 1aee7bdb1d
commit 78d97a3db2
3 changed files with 64 additions and 51 deletions

View file

@ -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()
}
)]
)
});
}