Commit ae3da88
Fix: CMake: Set Build Target shows all targets when using presets (#4671)
* Initial plan
* Fix CMake: Set Build Target command not showing available targets with presets
When using CMake Presets with build presets that define a targets field,
the showTargetSelector() method was returning early and only showing
preset-defined targets instead of all available CMake targets.
This fix removes the early return and instead adds the [Targets In Preset]
option to the beginning of the full target list when appropriate. Users can
now see and select from all available CMake targets, while still having the
option to use [Targets In Preset] to build the preset-defined targets.
Fixes #4509
Co-authored-by: hanniavalera <90047725+hanniavalera@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: hanniavalera <90047725+hanniavalera@users.noreply.github.com>1 parent 595d649 commit ae3da88
2 files changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2408 | 2408 | | |
2409 | 2409 | | |
2410 | 2410 | | |
2411 | | - | |
2412 | | - | |
2413 | | - | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
2417 | | - | |
2418 | 2411 | | |
2419 | 2412 | | |
2420 | 2413 | | |
2421 | 2414 | | |
2422 | 2415 | | |
2423 | 2416 | | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
2424 | 2422 | | |
2425 | 2423 | | |
2426 | 2424 | | |
| |||
0 commit comments