Repository navigation
FOLDER grouping in default build target dropdown - #3953
Garrett Campbell (gcampbell-msft) merged 11 commits into
Conversation
|
Garrett Campbell (@gcampbell-msft) Fatima Qarni (@qarni) What would I need to do to have this PR merged? |
|
itzandroidtab (@itzandroidtab) Our apologies for the delay, we've been in the midst of the 1.19 official version release, so we've not been able to review community PR's. We hope to get to this soon, thanks and we appreciate your patience. |
Garrett Campbell (gcampbell-msft)
left a comment
There was a problem hiding this comment.
itzandroidtab (@itzandroidtab) First, please include a CHANGELOG.md entry.
Also, I like the idea of this PR and the screenshots you've provided look really good! I haven't taken a deeply close look at the code, but again it looks good.
HOWEVER, I think that this is probably a feature change that each user should be able to control if they would like. I think it'd be a great idea to add a setting that would allow people to choose whether they want this to be a flat list, or whether they want it to be structured using the FOLDER property. I could imagine a scenario where they only have a couple of targets, but if they're using the FOLDER property, even though there are only a limited set of options, they have to do multiple clicks to select it, due to the new implementation you've added.
I'd love to approve this feature, but I think it should have the added ability to control whether we use the flat list or the FOLDER grouping based on a setting. I currently don't have a strong opinion on whether the setting should default to the flat list or the FOLDER grouping.
moyo1997 Ion Todirel (@itodirel) Sinem Akinci (@sinemakinci1) FYI, thoughts?
|
Garrett Campbell (@gcampbell-msft) What would you call this option? And should this option also apply to the side view? |
I don't believe this option should apply to the side view, the FOLDER grouping should be used there always. The setting should only be used in the build target dropdown. For the name, it could be something like: |
|
Thank you. I will work on this |
|
itzandroidtab (@itzandroidtab) Changing this to a draft PR until further changes are made. Please let us know if you have any questions but we will leave it in a draft state for a while, and then if no updates are made we may need to close it in order to keep our PRs clean. We're interested in considering this change once the settings option is added! Thanks! |
|
Garrett Campbell (@gcampbell-msft) I have added the feature to the CHANGELOG.md and added the option to enable/disable this feature. By default it is turned on |
Garrett Campbell (gcampbell-msft)
left a comment
There was a problem hiding this comment.
Some nit changes, and I'm conflicted about whether to default the setting to true or false.
Personally, I don't think it's a very risky change, but I lean towards defaulting it to false, since it will affect the search capability and most projects are expecting a straight forward list
|
Garrett Campbell (@gcampbell-msft) I have changed the default to |
* added FOLDER grouping in default build target dropdown * added option to enable/disable folder grouping * reworked folder grouping to use new option * Added folder grouping to changelog.md * Fix url and CMake capitalisation * changed variables to lowerCamelCase * bugfix showing folder popup when selecting a target with the same name as a folder * Moved FolderTarget to cmakeDriver * Changed the default of 'useFolderPropertyInBuildTargetDropdown' to false

This changes visible behavior
The following changes are proposed:
The purpose of this change
When a project has a lot of targets it becomes a hassle to find the right default build target. In the project outline the targets are grouped. This PR also groups the default build target dropdown. Discussion #3949. When clicking on the folder it will show the corresponding targets.
Previous
New
After selecting the folder: