aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json5
-rw-r--r--editors/code/src/run.ts2
2 files changed, 2 insertions, 5 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index b9c57db3b..859ab4477 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -487,10 +487,7 @@
487 "default": true 487 "default": true
488 }, 488 },
489 "rust-analyzer.linkedProjects": { 489 "rust-analyzer.linkedProjects": {
490 "markdownDescription": [ 490 "markdownDescription": "Disable project auto-discovery in favor of explicitly specified set of projects. \nElements must be paths pointing to Cargo.toml, rust-project.json, or JSON objects in rust-project.json format",
491 "Disable project auto-discovery in favor of explicitly specified set of projects.",
492 "Elements must be paths pointing to Cargo.toml, rust-project.json, or JSON objects in rust-project.json format"
493 ],
494 "type": "array", 491 "type": "array",
495 "items": { 492 "items": {
496 "type": [ 493 "type": [
diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts
index 5c790741f..bb060cfe1 100644
--- a/editors/code/src/run.ts
+++ b/editors/code/src/run.ts
@@ -110,7 +110,7 @@ export function createTask(runnable: ra.Runnable): vscode.Task {
110 switch (runnable.kind) { 110 switch (runnable.kind) {
111 case "cargo": command = toolchain.getPathForExecutable("cargo"); 111 case "cargo": command = toolchain.getPathForExecutable("cargo");
112 } 112 }
113 const args = runnable.args.cargoArgs; 113 const args = [...runnable.args.cargoArgs]; // should be a copy!
114 if (runnable.args.executableArgs.length > 0) { 114 if (runnable.args.executableArgs.length > 0) {
115 args.push('--', ...runnable.args.executableArgs); 115 args.push('--', ...runnable.args.executableArgs);
116 } 116 }