on master help sign in
fix(lsp): ensure we only highlight diagnostics for lsp with the feature enabled (#8551)
cd59164Yomain
helix-term/src/ui/editor.rs+1−1
@@ -365,7 +365,7 @@ impl EditorView {
365 let mut warning_vec = Vec::new();
365 let mut warning_vec = Vec::new();
366 let mut error_vec = Vec::new();
366 let mut error_vec = Vec::new();
367
367
368− for diagnostic in doc.diagnostics() {
368+ for diagnostic in doc.shown_diagnostics() {
369 // Separate diagnostics into different Vecs by severity.
369 // Separate diagnostics into different Vecs by severity.
370 let (vec, scope) = match diagnostic.severity {
370 let (vec, scope) = match diagnostic.severity {
371 Some(Severity::Info) => (&mut info_vec, info),
371 Some(Severity::Info) => (&mut info_vec, info),