bazel-contrib / bazel-contrib/vscode-bazel
Feature Requet: Smart Run Current Target
- Dominant language
- TypeScript
- Stars
- 296
- Forks
- 108
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 5
Description
Similar to the [Build Current Target](https://github.com/bazel-contrib/vscode-bazel/issues/500) feature, it would be great if there was a "smart run" feature that would either `bazel run`, `bazel test`, or `bazel build` the current target depending on it's type. if the cursor is on a target that is of type `*_binary` then it will be `run`. If it is on a target that is of type `*_test` then it will be tested. Otherwise, it will simply be built.
Contributor guide
Research direction
Review the Build Current Target feature in issue #500 first, then trace how the extension identifies and operates on the current target. Implement the requested choice among run, test, and build based on the target type, and verify each command path against the existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- build-system, developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100