aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/rust-analyzer/src/handlers.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs
index 1a0bee5e4..7ac1a30f6 100644
--- a/crates/rust-analyzer/src/handlers.rs
+++ b/crates/rust-analyzer/src/handlers.rs
@@ -1022,11 +1022,12 @@ pub(crate) fn handle_code_lens_resolve(
1022 }) 1022 })
1023 .unwrap_or_default(); 1023 .unwrap_or_default();
1024 1024
1025 let title = reference_title(locations.len());
1025 let cmd = if locations.is_empty() { 1026 let cmd = if locations.is_empty() {
1026 Command { title: "No references".into(), command: "".into(), arguments: None } 1027 Command { title, command: "".into(), arguments: None }
1027 } else { 1028 } else {
1028 show_references_command( 1029 show_references_command(
1029 reference_title(locations.len()), 1030 title,
1030 &doc_position.text_document.uri, 1031 &doc_position.text_document.uri,
1031 code_lens.range.start, 1032 code_lens.range.start,
1032 locations, 1033 locations,