Assign diagnostics a group_id based on their related_information

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-11-04 14:52:34 +01:00
parent 2d6285a6e1
commit 78bbb83448
5 changed files with 252 additions and 73 deletions

View file

@ -3633,7 +3633,8 @@ mod tests {
Point::new(0, 9)..Point::new(0, 10),
&Diagnostic {
severity: lsp::DiagnosticSeverity::ERROR,
message: "undefined variable 'A'".to_string()
message: "undefined variable 'A'".to_string(),
group_id: 0,
}
)]
)