From 54d0aae2e90f6172007dd40342a9a05020f8c18f Mon Sep 17 00:00:00 2001 From: Chris McClelland Date: Fri, 19 Jul 2024 13:13:07 +0100 Subject: [PATCH] fix(codelens): Apply commandArgs to run targets (#408) --- src/bazel/tasks.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bazel/tasks.ts b/src/bazel/tasks.ts index 2a6c1e32..21e44965 100644 --- a/src/bazel/tasks.ts +++ b/src/bazel/tasks.ts @@ -227,7 +227,10 @@ export function createBazelTaskFromDefinition( vscode.workspace.getConfiguration("bazel.commandLine"); const startupOptions = bazelConfigCmdLine.get("startupOptions"); const addCommandArgs = - command === "build" || command === "test" || command === "coverage"; + command === "build" || + command === "test" || + command === "coverage" || + command === "run"; const commandArgs = addCommandArgs ? bazelConfigCmdLine.get("commandArgs") : [];