Skip to content

Commit 9c77c18

Browse files
authored
fix(codelens): Apply commandArgs to run targets (#408)
1 parent 4f02dc5 commit 9c77c18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bazel/tasks.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,10 @@ export function createBazelTaskFromDefinition(
227227
vscode.workspace.getConfiguration("bazel.commandLine");
228228
const startupOptions = bazelConfigCmdLine.get<string[]>("startupOptions");
229229
const addCommandArgs =
230-
command === "build" || command === "test" || command === "coverage";
230+
command === "build" ||
231+
command === "test" ||
232+
command === "coverage" ||
233+
command === "run";
231234
const commandArgs = addCommandArgs
232235
? bazelConfigCmdLine.get<string[]>("commandArgs")
233236
: [];

0 commit comments

Comments
 (0)