mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
refactor: Use a single CLI args array rather than a separate subcommand field
This commit is contained in:
parent
d472fd932b
commit
2e109c7da8
2 changed files with 11 additions and 13 deletions
|
@ -115,8 +115,7 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
|
|||
|
||||
const definition: tasks.RustTargetDefinition = {
|
||||
type: tasks.TASK_TYPE,
|
||||
command: args[0], // run, test, etc...
|
||||
args: args.slice(1),
|
||||
args,
|
||||
cwd: runnable.args.workspaceRoot || ".",
|
||||
env: prepareEnv(runnable, config.runnablesExtraEnv),
|
||||
overrideCargo: runnable.args.overrideCargo,
|
||||
|
@ -128,7 +127,6 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
|
|||
target,
|
||||
definition,
|
||||
runnable.label,
|
||||
args,
|
||||
config.problemMatcher,
|
||||
config.cargoRunner,
|
||||
true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue