Repository navigation
Add cmake.selectBuildAndLaunchTarget command to set both targets simultaneously - #4732
Merged
Merged
Conversation
…s at once Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add command to set build and launch target simultaneously
Feb 13, 2026
|
Copilot how about adding a third special build target similar to |
Contributor
Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com>
Contributor
Author
Contributor
Hey Elias Steurer (@kelteseth), could you create a new issue detailing your suggestion a bit more? We'd be happy to take it but I need to first make sure it isn't conflicting with other suggestions we've received that are on our roadmap already. |
Copilot stopped work on behalf of
snehara99 due to an error
February 23, 2026 16:58
snehara99
marked this pull request as ready for review
February 23, 2026 16:59
snehara99
enabled auto-merge (squash)
February 23, 2026 16:59
Hannia Valera (hanniavalera)
approved these changes
Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change addresses item #4466
This changes visible behavior
The following changes are proposed:
selectBuildAndLaunchTargetmethod toCMakeProjectthat callssetLaunchTargetByNamethensetDefaultBuildTargetwith the selected target nameExtensionManagerwrapper and registerselectBuildAndLaunchTargetin the commandfunsarraycmake.selectBuildAndLaunchTargetcommand definition and command palette entry inpackage.json"Set Build and Launch/Debug Target"inpackage.nls.jsonCHANGELOG.mdciting PR Addcmake.selectBuildAndLaunchTargetcommand to set both targets simultaneously #4732The purpose of this change
Setting a launch target almost always requires updating the build target to match. This adds a single command (
CMake: Set Build and Launch/Debug Targetin the Command Palette) that shows the executable target picker and sets both the build and launch target to the selection.Other Notes/Information
The new command reuses the existing
setLaunchTargetByNameflow (including reconfigure-if-needed, quick pick UI, single-target auto-select) and chainssetDefaultBuildTargeton success. No new dependencies or settings introduced.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.