diff options
author | Blaž Hrastnik | 2022-09-03 03:18:08 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-09-03 03:18:08 +0000 |
commit | 1caba2d3e8e16752d7d659b58c51931451a1cb47 (patch) | |
tree | 6b0c40f112c57af64198831836252960846a05a1 | |
parent | e917a8e0be29aa3f8aaa537e0aa88e6df8ce974e (diff) |
lsp: Don't log "LSP not defined" errors in the logfile
-rw-r--r-- | helix-lsp/src/lib.rs | 6 |
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; } |