Send a CodeLensRefresh when we reload

This commit is contained in:
kjeremy
2020-12-09 14:36:47 -05:00
parent 928d4c6744
commit 78dd2ba196
2 changed files with 13 additions and 0 deletions

View File

@@ -369,6 +369,11 @@ impl GlobalState {
self.semantic_tokens_cache.lock().clear();
self.send_request::<lsp_types::request::SemanticTokensRefesh>((), |_, _| ());
}
// Refresh code lens if the client supports it.
if self.config.code_lens_refresh {
self.send_request::<lsp_types::request::CodeLensRefresh>((), |_, _| ());
}
}
if let Some(diagnostic_changes) = self.diagnostics.take_changes() {