mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 22:24:14 +00:00
Add "Run" lens for binary runnables
This commit is contained in:
parent
6deeabf686
commit
1037242e6e
1 changed files with 1 additions and 1 deletions
|
@ -695,7 +695,7 @@ pub fn handle_code_lens(
|
||||||
let title = match &runnable.kind {
|
let title = match &runnable.kind {
|
||||||
RunnableKind::Test { .. } | RunnableKind::TestMod { .. } => Some("▶️Run Test"),
|
RunnableKind::Test { .. } | RunnableKind::TestMod { .. } => Some("▶️Run Test"),
|
||||||
RunnableKind::Bench { .. } => Some("Run Bench"),
|
RunnableKind::Bench { .. } => Some("Run Bench"),
|
||||||
_ => None,
|
RunnableKind::Bin => Some("️Run"),
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Some(title) = title {
|
if let Some(title) = title {
|
||||||
|
|
Loading…
Reference in a new issue