aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-09-03 03:18:08 +0000
committerBlaž Hrastnik2022-09-03 03:18:08 +0000
commit1caba2d3e8e16752d7d659b58c51931451a1cb47 (patch)
tree6b0c40f112c57af64198831836252960846a05a1 /helix-lsp
parente917a8e0be29aa3f8aaa537e0aa88e6df8ce974e (diff)
lsp: Don't log "LSP not defined" errors in the logfile
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/src/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index 79d9609e..516c93ca 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -356,7 +356,11 @@ impl Registry {
.await;
if let Err(e) = value {
- log::error!("failed to initialize language server: {}", e);
+ if let Error::LspNotDefined = e {
+ // Skip logging "lsp not defined"
+ } else {
+ log::error!("failed to initialize language server: {}", e);
+ }
return;
}