Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Don't pull diagnostics on excerpts change in diagnostics editors (#38212)

Cole Millerc27d8e0c7a66
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 00ae0bcbac1..8f69efe30ef 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -20549,7 +20549,9 @@ impl Editor {
)
.detach();
}
- self.update_lsp_data(false, Some(buffer_id), window, cx);
+ if self.active_diagnostics != ActiveDiagnostic::All {
+ self.update_lsp_data(false, Some(buffer_id), window, cx);
+ }
cx.emit(EditorEvent::ExcerptsAdded {
buffer: buffer.clone(),
predecessor: *predecessor,