mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-26 11:55:04 +00:00
Merge #6274
6274: Check cargoExtraArgs for undefined before using r=matklad a=feileacan Fixes #6273 Co-authored-by: feileacan <54381366+feileacan@users.noreply.github.com>
This commit is contained in:
commit
2c5bd9517e
1 changed files with 3 additions and 1 deletions
|
@ -129,7 +129,9 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
|
||||||
}
|
}
|
||||||
|
|
||||||
const args = [...runnable.args.cargoArgs]; // should be a copy!
|
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) {
|
if (runnable.args.executableArgs.length > 0) {
|
||||||
args.push('--', ...runnable.args.executableArgs);
|
args.push('--', ...runnable.args.executableArgs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue