mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
fix(lsp): prepare diagnostics when the config changes (#9438)
This commit is contained in:
parent
e368c5d0f9
commit
1f9e9002d5
1 changed files with 3 additions and 8 deletions
|
@ -698,10 +698,6 @@ impl Inner {
|
|||
self.performance.measure(mark);
|
||||
}
|
||||
|
||||
async fn did_save(&self, _params: DidSaveTextDocumentParams) {
|
||||
// nothing to do yet... cleanup things?
|
||||
}
|
||||
|
||||
async fn did_change_configuration(
|
||||
&mut self,
|
||||
params: DidChangeConfigurationParams,
|
||||
|
@ -745,6 +741,9 @@ impl Inner {
|
|||
.show_message(MessageType::Warning, err.to_string())
|
||||
.await;
|
||||
}
|
||||
if let Err(err) = self.prepare_diagnostics().await {
|
||||
error!("{}", err);
|
||||
}
|
||||
} else {
|
||||
error!("received empty extension settings from the client");
|
||||
}
|
||||
|
@ -1697,10 +1696,6 @@ impl lspower::LanguageServer for LanguageServer {
|
|||
self.0.lock().await.did_close(params).await
|
||||
}
|
||||
|
||||
async fn did_save(&self, params: DidSaveTextDocumentParams) {
|
||||
self.0.lock().await.did_save(params).await
|
||||
}
|
||||
|
||||
async fn did_change_configuration(
|
||||
&self,
|
||||
params: DidChangeConfigurationParams,
|
||||
|
|
Loading…
Reference in a new issue