vscode-bazel icon indicating copy to clipboard operation
vscode-bazel copied to clipboard

bazel.commandLine.queryExpression not used by all queries

Open huili80 opened this issue 1 year ago • 0 comments

This is probably more of a feature request than bug report, but I wonder if bazel.commandLine.queryExpression should be used to limit the scope of all queries, including those performed by bazelBuildTarget and bazelRunTarget etc.

I'm currently working in workspaces where not all targets are valid (and there is no way to change or fix those). I use queryExpression to allow the tree view to show up for just the targets I care about, but commands (via ctrl+shift+p) are still not usable because they try to query across all targets which would fail.

Alternatively, maybe every action that leads to a bazel query could have its own expression parameter, e.g., bazel.commandLine.buildExpression and bazel.commandLine.runExpression etc.

If this is something worth having, I'm happy to make a PR.

huili80 avatar Jan 19 '24 02:01 huili80