1
0
Fork 0
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:
Kitson Kelly 2021-02-08 21:45:46 +11:00 committed by GitHub
parent e368c5d0f9
commit 1f9e9002d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,