mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Flatten cargoExtraArgs away from the runnable lsp extension
This commit is contained in:
parent
fcddcf2ee5
commit
3d7ee9b4ea
9 changed files with 19 additions and 38 deletions
|
@ -165,9 +165,6 @@ export async function createTaskFromRunnable(
|
|||
|
||||
export function createCargoArgs(runnableArgs: ra.CargoRunnableArgs): string[] {
|
||||
const args = [...runnableArgs.cargoArgs]; // should be a copy!
|
||||
if (runnableArgs.cargoExtraArgs) {
|
||||
args.push(...runnableArgs.cargoExtraArgs); // Append user-specified cargo options.
|
||||
}
|
||||
if (runnableArgs.executableArgs.length > 0) {
|
||||
args.push("--", ...runnableArgs.executableArgs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue