Skip to content

Commit d4a92b4

Browse files
bors[bot]vsrs
andauthored
Merge #4769
4769: Fix Run lens. r=matklad a=vsrs This PR fixes a bug introduced in #4710: second and all subsequent clicks on the Run lens produce invalid commands: 1. `cargo test --package ra_ide --lib -- hover::tests::test_hover_enum_has_impl_action --exact --nocapture` 2. `cargo test --package ra_ide --lib -- hover::tests::test_hover_enum_has_impl_action --exact --nocapture` **`-- hover::tests::test_hover_enum_has_impl_action --exact --nocapture`** 3. `cargo test --package ra_ide --lib -- hover::tests::test_hover_enum_has_impl_action --exact --nocapture` **`-- hover::tests::test_hover_enum_has_impl_action --exact --nocapture -- hover::tests::test_hover_enum_has_impl_action --exact --nocapture`** Co-authored-by: vsrs <[email protected]>
2 parents a609336 + b91fa74 commit d4a92b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function createTask(runnable: ra.Runnable): vscode.Task {
110110
switch (runnable.kind) {
111111
case "cargo": command = toolchain.getPathForExecutable("cargo");
112112
}
113-
const args = runnable.args.cargoArgs;
113+
const args = [...runnable.args.cargoArgs]; // should be a copy!
114114
if (runnable.args.executableArgs.length > 0) {
115115
args.push('--', ...runnable.args.executableArgs);
116116
}

0 commit comments

Comments
 (0)