diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-17 08:52:45 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-17 08:52:45 +0000 |
commit | c9989a524caa3379aac4f451a452c7ac9b247ae8 (patch) | |
tree | 28029f0406b5c5d734a36a515d1d036cc0b59333 /crates/ra_lsp_server/src/main_loop | |
parent | dd8fc5a61adf557afa2cd971039be10a83f6d503 (diff) | |
parent | f0338cea5b3a214fe5e72eec68670b161530e1a6 (diff) |
Merge #3153
3153: When a single test is run, do not run others with overlapping names r=matklad a=SomeoneToIgnore
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 2e598fdcd..5879a1f7a 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -918,9 +918,9 @@ fn to_lsp_runnable( | |||
918 | let args = runnable_args(world, file_id, &runnable.kind)?; | 918 | let args = runnable_args(world, file_id, &runnable.kind)?; |
919 | let line_index = world.analysis().file_line_index(file_id)?; | 919 | let line_index = world.analysis().file_line_index(file_id)?; |
920 | let label = match &runnable.kind { | 920 | let label = match &runnable.kind { |
921 | RunnableKind::Test { name } => format!("test {}", name), | 921 | RunnableKind::Test { test_id } => format!("test {}", test_id), |
922 | RunnableKind::TestMod { path } => format!("test-mod {}", path), | 922 | RunnableKind::TestMod { path } => format!("test-mod {}", path), |
923 | RunnableKind::Bench { name } => format!("bench {}", name), | 923 | RunnableKind::Bench { test_id } => format!("bench {}", test_id), |
924 | RunnableKind::Bin => "run binary".to_string(), | 924 | RunnableKind::Bin => "run binary".to_string(), |
925 | }; | 925 | }; |
926 | Ok(req::Runnable { | 926 | Ok(req::Runnable { |