diff options
author | Yomain | 2023-10-17 10:07:00 +0000 |
---|---|---|
committer | GitHub | 2023-10-17 10:07:00 +0000 |
commit | cd591647ec93843d0f8d523253cd2ee3993f7e28 (patch) | |
tree | 92916230116193f23e7da2bd67dad5c710f2445b | |
parent | d9d7f67898a09816f51e9a699975a97734ec114f (diff) |
fix(lsp): ensure we only highlight diagnostics for lsp with the feature enabled (#8551)
-rw-r--r-- | helix-term/src/ui/editor.rs | 2 |
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), |