From 9c77c18410b565f69fcad0f44f8861abf4fc9caf Mon Sep 17 00:00:00 2001 From: Chris McClelland Date: Tue, 23 Jul 2024 01:07:29 +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") : [];