From 91da41b3b13129007920943d7300459921faf3c5 Mon Sep 17 00:00:00 2001 From: vsrs Date: Tue, 29 Sep 2020 15:20:07 +0300 Subject: Replace "No references" with "0 references". --- crates/rust-analyzer/src/handlers.rs | 5 +++-- 1 file 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( }) .unwrap_or_default(); + let title = reference_title(locations.len()); let cmd = if locations.is_empty() { - Command { title: "No references".into(), command: "".into(), arguments: None } + Command { title, command: "".into(), arguments: None } } else { show_references_command( - reference_title(locations.len()), + title, &doc_position.text_document.uri, code_lens.range.start, locations, -- cgit v1.2.3