aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-05-14 14:28:18 +0100
committerGitHub <[email protected]>2020-05-14 14:28:18 +0100
commit51d5a08255482d6cf7dfcb9e3c6bb1a0aec6379d (patch)
tree50f00bd234f727876516b48aa82e9e5b0bcd8987 /crates
parent20fdd14c62aa9c5327f1e6afc04f01a5af6763fb (diff)
Better label for a runnable.
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/main_loop/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop/handlers.rs b/crates/rust-analyzer/src/main_loop/handlers.rs
index 76ed6f29a..a5d0cbe78 100644
--- a/crates/rust-analyzer/src/main_loop/handlers.rs
+++ b/crates/rust-analyzer/src/main_loop/handlers.rs
@@ -1020,7 +1020,7 @@ fn to_lsp_runnable(
1020 RunnableKind::Bench { test_id } => format!("bench {}", test_id), 1020 RunnableKind::Bench { test_id } => format!("bench {}", test_id),
1021 RunnableKind::DocTest { test_id, .. } => format!("doctest {}", test_id), 1021 RunnableKind::DocTest { test_id, .. } => format!("doctest {}", test_id),
1022 RunnableKind::Bin => { 1022 RunnableKind::Bin => {
1023 target.map_or_else(|| "run binary".to_string(), |t| format!("run binary '{}'", t)) 1023 target.map_or_else(|| "run binary".to_string(), |t| format!("run {}", t))
1024 } 1024 }
1025 }; 1025 };
1026 Ok(lsp_ext::Runnable { 1026 Ok(lsp_ext::Runnable {