diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-16 13:44:24 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-16 13:44:24 +0100 |
commit | c7ceea82a5ab8aabab2f98e7c1e1ec94e82087c2 (patch) | |
tree | cb0154569a278e4f9899355ed9e943adb049e53b /crates/ra_lsp_server/src/main_loop | |
parent | 6deeabf686950636ea9f9bce9da96cf452f20765 (diff) | |
parent | 1037242e6e9a1075daba222884203cac5a638f17 (diff) |
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:

After:

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:

Co-authored-by: Kirill Bulatov <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index ab9ed5080..68865b755 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -695,7 +695,7 @@ pub fn handle_code_lens( | |||
695 | let title = match &runnable.kind { | 695 | let title = match &runnable.kind { |
696 | RunnableKind::Test { .. } | RunnableKind::TestMod { .. } => Some("▶️Run Test"), | 696 | RunnableKind::Test { .. } | RunnableKind::TestMod { .. } => Some("▶️Run Test"), |
697 | RunnableKind::Bench { .. } => Some("Run Bench"), | 697 | RunnableKind::Bench { .. } => Some("Run Bench"), |
698 | _ => None, | 698 | RunnableKind::Bin => Some("️Run"), |
699 | }; | 699 | }; |
700 | 700 | ||
701 | if let Some(title) = title { | 701 | if let Some(title) = title { |