mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +00:00
Merge #1536
1536: Add "Run" lens for binary runnables r=matklad a=SomeoneToIgnore Add an easy way to launch the different `main` methods from VS Code: Before: ![image](https://user-images.githubusercontent.com/2690773/61294531-b0111a80-a7de-11e9-856a-eedce52f883f.png) After: ![image](https://user-images.githubusercontent.com/2690773/61294556-bef7cd00-a7de-11e9-9fbd-cb5076e0b1b6.png) I've decided to omit the ️`▶️` symbol (as done for benches) since it looks a bit weird to me, but here's the version with it, just to compare: ![image](https://user-images.githubusercontent.com/2690773/61294597-dafb6e80-a7de-11e9-8f08-b513b8902ef5.png) Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
This commit is contained in:
commit
c7ceea82a5
1 changed files with 1 additions and 1 deletions
|
@ -695,7 +695,7 @@ pub fn handle_code_lens(
|
|||
let title = match &runnable.kind {
|
||||
RunnableKind::Test { .. } | RunnableKind::TestMod { .. } => Some("▶️Run Test"),
|
||||
RunnableKind::Bench { .. } => Some("Run Bench"),
|
||||
_ => None,
|
||||
RunnableKind::Bin => Some("️Run"),
|
||||
};
|
||||
|
||||
if let Some(title) = title {
|
||||
|
|
Loading…
Reference in a new issue