aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp/src
diff options
context:
space:
mode:
authorKirawi2021-09-15 05:58:06 +0000
committerGitHub2021-09-15 05:58:06 +0000
commitef532e0c0df3e9f8bf4ac5af74b54f32b7ea2728 (patch)
tree932c976e224d9b345c5c7e9c141fc40b8b636d3b /helix-lsp/src
parent51b7f40da1e564d9ecb5263421306d5846d98566 (diff)
log errors produced when trying to initialize the LSP (#746)
Diffstat (limited to 'helix-lsp/src')
-rw-r--r--helix-lsp/src/lib.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index 7357c885..35cff754 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -318,7 +318,15 @@ impl Registry {
let (client, incoming, initialize_notify) = Client::start(
&config.command,
&config.args,
- serde_json::from_str(language_config.config.as_deref().unwrap_or("")).ok(),
+ serde_json::from_str(language_config.config.as_deref().unwrap_or(""))
+ .map_err(|e| {
+ log::error!(
+ "LSP Config, {}, in `languages.toml` for `{}`",
+ e,
+ language_config.scope()
+ )
+ })
+ .ok(),
id,
)?;
self.incoming.push(UnboundedReceiverStream::new(incoming));