on master help sign in
increase LSP shutdown timeout

The Clang LAP takes a long time to shut down on Windows

commitfaa00d4cc3de89a89679f6315c0345182929beb2 authorSkyler Hawthorne <skyler@dead10ck.com> dateSun 7 Aug 2022, 00:00 (4 years ago) parent8c667ef
1 file changed+2−2
helix-view/src/editor.rs+2−2
helix-view/src/editor.rs+2−2
@@ -1288,14 +1288,14 @@ impl Editor {
12881288 }
12891289 }
12901290
1291− /// Closes language servers with timeout. The default timeout is 500 ms, use
1291+ /// Closes language servers with timeout. The default timeout is 10000 ms, use
12921292 /// `timeout` parameter to override this.
12931293 pub async fn close_language_servers(
12941294 &self,
12951295 timeout: Option<u64>,
12961296 ) -> Result<(), tokio::time::error::Elapsed> {
12971297 tokio::time::timeout(
1298− Duration::from_millis(timeout.unwrap_or(500)),
1298+ Duration::from_millis(timeout.unwrap_or(10000)),
12991299 future::join_all(
13001300 self.language_servers
13011301 .iter_clients()