Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Ensure pull diagnostics do not happen for non-full mode editors (#32449)
Kirill Bulatovc1a4a24bce69
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 5ff649222ea..0dd894beed7 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -16077,13 +16077,16 @@ impl Editor {window: &Window,cx: &mut Context<Self>,) -> Option<()> {- let project = self.project.as_ref()?.downgrade();+ if !self.mode().is_full() {+ return None;+ }let pull_diagnostics_settings = ProjectSettings::get_global(cx).diagnostics.lsp_pull_diagnostics;if !pull_diagnostics_settings.enabled {return None;}+ let project = self.project.as_ref()?.downgrade();let debounce = Duration::from_millis(pull_diagnostics_settings.debounce_ms);let mut buffers = self.buffer.read(cx).all_buffers();if let Some(buffer_id) = buffer_id {