mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-20 16:07:55 +03:00
fix(lsp): ensure we only highlight diagnostics for lsp with the feature enabled (#8551)
This commit is contained in:
parent
d9d7f67898
commit
cd591647ec
@ -365,7 +365,7 @@ pub fn doc_diagnostics_highlights(
|
||||
let mut warning_vec = Vec::new();
|
||||
let mut error_vec = Vec::new();
|
||||
|
||||
for diagnostic in doc.diagnostics() {
|
||||
for diagnostic in doc.shown_diagnostics() {
|
||||
// Separate diagnostics into different Vecs by severity.
|
||||
let (vec, scope) = match diagnostic.severity {
|
||||
Some(Severity::Info) => (&mut info_vec, info),
|
||||
|
Loading…
Reference in New Issue
Block a user