lsp: Don't log "LSP not defined" errors in the logfile

This commit is contained in:
Blaž Hrastnik 2022-09-03 12:18:08 +09:00
parent e917a8e0be
commit 1caba2d3e8
No known key found for this signature in database
GPG key ID: 1238B9C4AD889640

View file

@ -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;
}