lsp: Don't log "LSP not defined" errors in the logfile
This commit is contained in:
parent
e917a8e0be
commit
1caba2d3e8
1 changed files with 5 additions and 1 deletions
|
@ -356,7 +356,11 @@ impl Registry {
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
if let Err(e) = value {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue