mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 00:15:05 +00:00
Bump timeout for rust diagnostics
(cherry picked from commit c42dcf29a9849e1fe935e5039aebd24e7b1f6cac)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user