Do not pull diagnostics when those are disabled (#41865)

Based on 

[hang.log](https://github.com/user-attachments/files/23319081/hang.log)


Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov
2025-11-03 22:42:26 +00:00
committed by GitHub
parent 5ed458497e
commit 5e41ce17e3
+2 -1
View File
@@ -17847,6 +17847,7 @@ impl Editor {
.unwrap_or(self.diagnostics_max_severity);
if !self.inline_diagnostics_enabled()
|| !self.diagnostics_enabled()
|| !self.show_inline_diagnostics
|| max_severity == DiagnosticSeverity::Off
{
@@ -17925,7 +17926,7 @@ impl Editor {
window: &Window,
cx: &mut Context<Self>,
) -> Option<()> {
if self.ignore_lsp_data() {
if self.ignore_lsp_data() || !self.diagnostics_enabled() {
return None;
}
let pull_diagnostics_settings = ProjectSettings::get_global(cx)