diff options
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), |