on master help sign in
fix(lsp): ensure we only highlight diagnostics for lsp with the feature enabled (#8551)
commitcd591647ec93843d0f8d523253cd2ee3993f7e28 authorYomain <40139584+yo-main@users.noreply.github.com> dateTue 17 Oct 2023, 12:07 (3 years ago) parentd9d7f67
1 file changed+1−1
helix-term/src/ui/editor.rs+1−1
helix-term/src/ui/editor.rs+1−1
@@ -365,7 +365,7 @@ impl EditorView {
365365 let mut warning_vec = Vec::new();
366366 let mut error_vec = Vec::new();
367367
368− for diagnostic in doc.diagnostics() {
368+ for diagnostic in doc.shown_diagnostics() {
369369 // Separate diagnostics into different Vecs by severity.
370370 let (vec, scope) = match diagnostic.severity {
371371 Some(Severity::Info) => (&mut info_vec, info),