Skip to content

Commit

Permalink
Replace "No references" with "0 references".
Browse files Browse the repository at this point in the history
  • Loading branch information
vsrs committed Sep 29, 2020
1 parent cd5eeb9 commit 91da41b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/rust-analyzer/src/handlers.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 91da41b

Please sign in to comment.