From 4696b84d3ada84fa1d67a324bf4d6b1add0cee4d Mon Sep 17 00:00:00 2001 From: Yomain Date: Mon, 16 Oct 2023 22:03:15 +0200 Subject: [PATCH] fix(lsp): only show highlight diagnostics when feature is enabled --- helix-term/src/ui/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index dd6fff087bee..31195a4e557a 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -365,7 +365,7 @@ impl EditorView { 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),