From faa00d4cc3de89a89679f6315c0345182929beb2 Mon Sep 17 00:00:00 2001 From: Skyler Hawthorne Date: Sun, 7 Aug 2022 00:00:15 -0400 Subject: increase LSP shutdown timeout The Clang LAP takes a long time to shut down on Windows --- helix-view/src/editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-view') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 58fcf238..27b4458f 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -1288,14 +1288,14 @@ impl Editor { } } - /// Closes language servers with timeout. The default timeout is 500 ms, use + /// Closes language servers with timeout. The default timeout is 10000 ms, use /// `timeout` parameter to override this. pub async fn close_language_servers( &self, timeout: Option, ) -> Result<(), tokio::time::error::Elapsed> { tokio::time::timeout( - Duration::from_millis(timeout.unwrap_or(500)), + Duration::from_millis(timeout.unwrap_or(10000)), future::join_all( self.language_servers .iter_clients() -- cgit v1.2.3-70-g09d2