From d019cdbbb29c00400ed5b74b99131087c7fb8aac Mon Sep 17 00:00:00 2001 From: feileacan <54381366+feileacan@users.noreply.github.com> Date: Sun, 18 Oct 2020 11:40:48 +1100 Subject: Check cargoExtraArgs for undefined before using --- editors/code/src/run.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts index 459b7f250..17573cd82 100644 --- a/editors/code/src/run.ts +++ b/editors/code/src/run.ts @@ -129,7 +129,9 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise } const args = [...runnable.args.cargoArgs]; // should be a copy! - args.push(...runnable.args.cargoExtraArgs); // Append user-specified cargo options. + if (runnable.args.cargoExtraArgs) { + args.push(...runnable.args.cargoExtraArgs); // Append user-specified cargo options. + } if (runnable.args.executableArgs.length > 0) { args.push('--', ...runnable.args.executableArgs); } -- cgit v1.2.3