diff options
author | vsrs <[email protected]> | 2020-09-29 13:20:07 +0100 |
---|---|---|
committer | vsrs <[email protected]> | 2020-09-29 13:29:20 +0100 |
commit | 91da41b3b13129007920943d7300459921faf3c5 (patch) | |
tree | 91d3312e41626d40387d59e9243ae32b099eecb1 | |
parent | cd5eeb904e6f5096bb1f8b76fba7e568cdbbdc8c (diff) |
Replace "No references" with "0 references".
-rw-r--r-- | crates/rust-analyzer/src/handlers.rs | 5 |
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, |