bazel-contrib / bazel-contrib/vscode-bazel

Ability to specify command args for bazel query

Open
#292 3 comments 0 reactions 0 assignees View on GitHub
more info needed
Dominant language
TypeScript
Stars
296
Forks
108
Avg merge
3d 22h
Merged PRs (30d)
5

Description

`bazel.commandLine.commandArgs` is only passed into `bazel test` and `bazel build` commands, not `bazel query`.

I have a scenario where I need to use `--config` or `--package_path` at the end of the command `bazel query`.

Can we add a configurable field to pass in args to `bazel query`? Currently, we have `startupOptions` which results to `bazel [startupOptions] query`. However, there isn't a way to have `bazel query [additionalArgs]`.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the bazel.commandLine.commandArgs and startupOptions settings are assembled for bazel query, then compare that flow with bazel test and bazel build. Done means a configurable field can add arguments after `bazel query`, including options such as `--config` or `--package_path`.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
build-system, cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.