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,
|
&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,
|
||||||
|
|
Loading…
Reference in New Issue