diff options
author | Aleksey Kladov <[email protected]> | 2020-02-18 11:15:12 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-18 11:15:12 +0000 |
commit | b6740060f60fa016ac1c3d420c9ac919d31f6997 (patch) | |
tree | c951b508d20622c23fbb4ff17e9fdfd18121f75e /crates/ra_lsp_server/src/main_loop | |
parent | 93b969003d0a9448d4207d9d5df9dde63f9444be (diff) |
Refactor
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 3 |
1 files changed, 2 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 ae51141cb..833f31d96 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -921,7 +921,8 @@ fn to_lsp_runnable( | |||
921 | file_id: FileId, | 921 | file_id: FileId, |
922 | runnable: Runnable, | 922 | runnable: Runnable, |
923 | ) -> Result<req::Runnable> { | 923 | ) -> Result<req::Runnable> { |
924 | let args = runnable_args(world, file_id, &runnable.kind)?; | 924 | let spec: Option<CargoTargetSpec> = CargoTargetSpec::for_file(world, file_id)?; |
925 | let args = runnable_args(spec, &runnable.kind)?; | ||
925 | let line_index = world.analysis().file_line_index(file_id)?; | 926 | let line_index = world.analysis().file_line_index(file_id)?; |
926 | let label = match &runnable.kind { | 927 | let label = match &runnable.kind { |
927 | RunnableKind::Test { test_id } => format!("test {}", test_id), | 928 | RunnableKind::Test { test_id } => format!("test {}", test_id), |