Skip to content

Conversation

bkolb
Copy link

@bkolb bkolb commented Sep 22, 2025

This change modifies the BazelBuildCodeLensProvider to create a target picker in case there is more than one target per category (Copy/Build/Run/Test).

The motivation is to provide a better and more user-friendly experience when working with macros in BUILD files. When a macro generates multiple targets, you could run into situations where not all actions were visible anymore.

Copy link
Contributor

@cbandera cbandera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution! I have tested it locally and it works fine. I like this new interactive approach much more then the previous "workaround" with sorting.

Nevertheless, I suggest to improve on the implementation further before merging this to master. See the following comments

@bkolb bkolb force-pushed the feature/multilineCodeLense branch from 4a0ab35 to b55a3fb Compare September 25, 2025 12:38
@bkolb
Copy link
Author

bkolb commented Sep 25, 2025

Thank you for your feedback. I will work on your comments and post a new version soon. The one I just pushed has an issue that I need to fix.

@bkolb bkolb force-pushed the feature/multilineCodeLense branch 2 times, most recently from 1b63371 to b0a63d4 Compare September 25, 2025 14:56
@bkolb
Copy link
Author

bkolb commented Sep 25, 2025

Can I get another round of review, please?

Copy link
Contributor

@cbandera cbandera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adressing my last set of review comments. The functionality is still given and works fine locally.

Here is a next set of (opinionated) findings with the goal of improving code quality.
(Note that I am not a maintainer, so feel free to take it as a suggestion or ignore as long as none of the maintainers performs a review 😉 )

This change modifies the BazelBuildCodeLensProvider to create a target
picker in case there is more than one target per category
(Copy/Build/Run/Test).

The motivation is to provide a better and more user-friendly experience
when working with macros in BUILD files. When a macro generates multiple
targets, you could run into situations where not all actions were
visible anymore.
@bkolb bkolb force-pushed the feature/multilineCodeLense branch from b0a63d4 to 77f8dbd Compare September 28, 2025 15:53
@bkolb
Copy link
Author

bkolb commented Sep 28, 2025

OK. I pushed again. Let me know what you think.
It would also be nice to get a review from @cameron-martin, @vogelsgesang or any other maintainer :-)

@cbandera
Copy link
Contributor

cbandera commented Oct 9, 2025

For the record: I like the latest version a lot and would also be interested in the thoughts of @cameron-martin 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants