fix: due to how error code now get printed match_code for quickfix was always false

This commit is contained in:
rvcas 2023-11-28 21:00:17 -05:00
parent 1f411cde0e
commit 858a9621fc
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 8 additions and 3 deletions

View File

@ -679,9 +679,14 @@ impl Server {
&line_numbers, &line_numbers,
), ),
severity: Some(severity), severity: Some(severity),
code: error code: error.code().map(|c| {
.code() lsp_types::NumberOrString::String(
.map(|c| lsp_types::NumberOrString::String(c.to_string())), c.to_string()
.trim()
.replace("Warning ", "")
.replace("Error ", ""),
)
}),
code_description: None, code_description: None,
source: None, source: None,
message, message,