Skip to content

Commit

Permalink
<fix>(codelens): Apply commandArgs to run targets
Browse files Browse the repository at this point in the history
  • Loading branch information
makestuff committed Jul 20, 2024
1 parent 4f02dc5 commit 073a29b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bazel/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ export function createBazelTaskFromDefinition(
vscode.workspace.getConfiguration("bazel.commandLine");
const startupOptions = bazelConfigCmdLine.get<string[]>("startupOptions");
const addCommandArgs =
command === "build" || command === "test" || command === "coverage";
command === "build" ||
command === "test" ||
command === "coverage" ||
command === "run";
const commandArgs = addCommandArgs
? bazelConfigCmdLine.get<string[]>("commandArgs")
: [];
Expand Down

0 comments on commit 073a29b

Please sign in to comment.