Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22522 from Wilfred/fix-test-one-in-project-json
fix: RunnableKind::Test should map to project_json::RunnableKind::TestOne
| -rw-r--r-- | crates/rust-analyzer/src/target_spec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/target_spec.rs b/crates/rust-analyzer/src/target_spec.rs index 5bdc9d8ca3..81d9786809 100644 --- a/crates/rust-analyzer/src/target_spec.rs +++ b/crates/rust-analyzer/src/target_spec.rs @@ -99,7 +99,7 @@ impl ProjectJsonTargetSpec { arg.replace("{label}", &this.label) }), RunnableKind::Test { test_id, .. } => { - self.find_replace_runnable(project_json::RunnableKind::Run, &|this, arg| { + self.find_replace_runnable(project_json::RunnableKind::TestOne, &|this, arg| { arg.replace("{label}", &this.label).replace("{test_id}", &test_id.to_string()) }) } |