aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-31 13:04:03 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-31 13:04:03 +0000
commit1bf47d43db631e096a0125b596fccad021ce6c2c (patch)
tree2259cf644c989d9c5d543e4b378db0d9369c762f /crates
parent97ade899937dafcafa852177c85edb22ce0b80dc (diff)
parent76c0d0b94d8fb64d27da203b85b576aa759e1bf8 (diff)
Merge #715
715: Use "▶" for test code lens r=matklad a=kjeremy I find that this makes code lenses stand out more otherwise they can be easy to miss. Co-authored-by: Jeremy Kolb <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs4
1 files changed, 3 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 74554f15c..0bec57e84 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -618,7 +618,9 @@ pub fn handle_code_lens(
618 618
619 for runnable in world.analysis().runnables(file_id)? { 619 for runnable in world.analysis().runnables(file_id)? {
620 let title = match &runnable.kind { 620 let title = match &runnable.kind {
621 RunnableKind::Test { name: _ } | RunnableKind::TestMod { path: _ } => Some("Run Test"), 621 RunnableKind::Test { name: _ } | RunnableKind::TestMod { path: _ } => {
622 Some("▶️Run Test")
623 }
622 RunnableKind::Bench { name: _ } => Some("Run Bench"), 624 RunnableKind::Bench { name: _ } => Some("Run Bench"),
623 _ => None, 625 _ => None,
624 }; 626 };