Skip to content

Commit

Permalink
Log language server shutdown errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vv9k committed Jun 18, 2021
1 parent e1ec204 commit ec9d995
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helix-lsp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ impl Client {

/// Forcefully shuts down the language server ignoring any errors.
pub async fn force_shutdown(&self) -> Result<()> {
let _ = self.shutdown().await;
if let Err(e) = self.shutdown().await {
log::warn!("language server failed to terminate gracefully - {}", e);
}
self.exit().await
}

Expand Down

0 comments on commit ec9d995

Please sign in to comment.