We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
n usage(s)
1 parent 16bcc62 commit 67157feCopy full SHA for 67157fe
crates/emmylua_ls/src/handlers/code_lens/resolve_code_lens.rs
@@ -71,7 +71,11 @@ fn make_usage_command(
71
client_id: ClientId,
72
refs: Vec<Location>,
73
) -> Command {
74
- let title = format!("{} usage", ref_count);
+ let title = format!(
75
+ "{} usage{}",
76
+ ref_count,
77
+ if ref_count == 1 { "" } else { "s" }
78
+ );
79
let mut args = Vec::new();
80
args.push(serde_json::to_value(uri).unwrap());
81
args.push(serde_json::to_value(range.start).unwrap());
0 commit comments