increase LSP shutdown timeout
The Clang LAP takes a long time to shut down on Windows
This commit is contained in:
parent
8c667ef8de
commit
faa00d4cc3
1 changed files with 2 additions and 2 deletions
|
@ -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<u64>,
|
||||
) -> 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()
|
||||
|
|
Loading…
Add table
Reference in a new issue