Skip to content

Commit

Permalink
fix(lsp): prepare diagnostics when the config changes (denoland#9438)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk authored Feb 8, 2021
1 parent e368c5d commit 1f9e900
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cli/lsp/language_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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");
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1f9e900

Please sign in to comment.