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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user