Skip to content

Commit

Permalink
lsp: Don't log "LSP not defined" errors in the logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Sep 3, 2022
1 parent e917a8e commit 1caba2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helix-lsp/src/lib.rs
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1caba2d

Please sign in to comment.