Replace "No references" with "0 references".
This commit is contained in:
parent
cd5eeb904e
commit
91da41b3b1
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue