Skip to content

Commit 91da41b

Browse files
committed
Replace "No references" with "0 references".
1 parent cd5eeb9 commit 91da41b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/rust-analyzer/src/handlers.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,11 +1022,12 @@ pub(crate) fn handle_code_lens_resolve(
10221022
})
10231023
.unwrap_or_default();
10241024

1025+
let title = reference_title(locations.len());
10251026
let cmd = if locations.is_empty() {
1026-
Command { title: "No references".into(), command: "".into(), arguments: None }
1027+
Command { title, command: "".into(), arguments: None }
10271028
} else {
10281029
show_references_command(
1029-
reference_title(locations.len()),
1030+
title,
10301031
&doc_position.text_document.uri,
10311032
code_lens.range.start,
10321033
locations,

0 commit comments

Comments
 (0)