aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorYomain2023-10-17 10:07:00 +0000
committerGitHub2023-10-17 10:07:00 +0000
commitcd591647ec93843d0f8d523253cd2ee3993f7e28 (patch)
tree92916230116193f23e7da2bd67dad5c710f2445b /helix-term
parentd9d7f67898a09816f51e9a699975a97734ec114f (diff)
fix(lsp): ensure we only highlight diagnostics for lsp with the feature enabled (#8551)
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/ui/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index dd6fff08..31195a4e 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),