fix: due to how error code now get printed match_code for quickfix was always false
This commit is contained in:
parent
1f411cde0e
commit
858a9621fc
|
@ -679,9 +679,14 @@ impl Server {
|
|||
&line_numbers,
|
||||
),
|
||||
severity: Some(severity),
|
||||
code: error
|
||||
.code()
|
||||
.map(|c| lsp_types::NumberOrString::String(c.to_string())),
|
||||
code: error.code().map(|c| {
|
||||
lsp_types::NumberOrString::String(
|
||||
c.to_string()
|
||||
.trim()
|
||||
.replace("Warning ", "")
|
||||
.replace("Error ", ""),
|
||||
)
|
||||
}),
|
||||
code_description: None,
|
||||
source: None,
|
||||
message,
|
||||
|
|
Loading…
Reference in New Issue