Bump timeout for rust diagnostics

(cherry picked from commit c42dcf29a9849e1fe935e5039aebd24e7b1f6cac)
This commit is contained in:
Michael Panchenko authored and Tyce Herrman committed 2026-07-29 09:45:49 -04:00
1 parent 3be211c662
commit 23957a55e4
1 file changed
+7
@@ -685,6 +685,13 @@ class RustAnalyzer(SolidLanguageServer):
}
return initialize_params
@override
def _get_published_diagnostics_wait_timeout(self, pull_diagnostics_failed: bool) -> float:
timeout = super()._get_published_diagnostics_wait_timeout(pull_diagnostics_failed)
# Rust diagnostics are often published asynchronously after the pull-diagnostics request,
# so keep a wider fallback wait window across all platforms.
return max(timeout, 4.0)
def _start_server(self) -> None:
"""
Starts the Rust Analyzer Language Server