aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/main_loop.rs
diff options
context:
space:
mode:
authorkjeremy <[email protected]>2020-12-09 19:36:47 +0000
committerkjeremy <[email protected]>2020-12-09 19:36:47 +0000
commit78dd2ba196fee53d32f5f53572a03f748d9bb542 (patch)
tree5818d8e795670b309250417a8e4fb3b8a8c4f09f /crates/rust-analyzer/src/main_loop.rs
parent928d4c6744d4b06bb1d67ea9b967c27342eea38c (diff)
Send a CodeLensRefresh when we reload
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r--crates/rust-analyzer/src/main_loop.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index d7f8374af..a5f7647b8 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -369,6 +369,11 @@ impl GlobalState {
369 self.semantic_tokens_cache.lock().clear(); 369 self.semantic_tokens_cache.lock().clear();
370 self.send_request::<lsp_types::request::SemanticTokensRefesh>((), |_, _| ()); 370 self.send_request::<lsp_types::request::SemanticTokensRefesh>((), |_, _| ());
371 } 371 }
372
373 // Refresh code lens if the client supports it.
374 if self.config.code_lens_refresh {
375 self.send_request::<lsp_types::request::CodeLensRefresh>((), |_, _| ());
376 }
372 } 377 }
373 378
374 if let Some(diagnostic_changes) = self.diagnostics.take_changes() { 379 if let Some(diagnostic_changes) = self.diagnostics.take_changes() {