Unnamed repository; edit this file 'description' to name the repository.
fix: RunnableKind::Test should map to project_json::RunnableKind::TestOne
The old code looks like a copy-paste mistake.
Wilfred Hughes 2 weeks ago
parent 55af177 · commit 02229b7
-rw-r--r--crates/rust-analyzer/src/target_spec.rs2
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())
})
}