fix(lsp): ensure we only highlight diagnostics for lsp with the feature enabled (#8551)

pull/8554/head
Yomain 1 year ago committed by GitHub
parent d9d7f67898
commit cd591647ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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),

Loading…
Cancel
Save