Add cmake.launchConfig setting for customizable run configurations#4916
Draft
hanniavalera wants to merge 1 commit intomainfrom
Draft
Add cmake.launchConfig setting for customizable run configurations#4916hanniavalera wants to merge 1 commit intomainfrom
hanniavalera wants to merge 1 commit intomainfrom
Conversation
- Introduced `cmake.launchConfig` to allow users to customize the "Run Without Debugging" command, enabling delegation to a VS Code task or a custom program. - Updated documentation and changelog to reflect this new feature. - Added unit tests to ensure correct functionality and regression coverage for the new launch configuration.
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 pull request introduces a major new feature to VS Code CMake Tools: the ability to customize the "Run Without Debugging" command via a new
cmake.launchConfigsetting. This allows users to delegate launching to a VS Code task or to run a custom program (such as a firmware flashing tool), with support for argument, environment, and working directory customization. The implementation includes schema, documentation, and UI/logic changes, as well as telemetry and user guidance for the new behavior. Suggested by @positron96 and addresses #4904Key changes include:
New Feature: Customizable Run Without Debugging
cmake.launchConfigsetting, allowing users to configure "Run Without Debugging" to either delegate to a VS Code task (task) or run a custom program (program). This supports variable substitution and custom arguments, environment, and working directory. [1] [2] [3] [4]Core Implementation and Lifecycle Management
CMakeProjectto handle the new launch modes, including running a VS Code task or a custom program instead of the default executable, with proper terminal/task lifecycle and cleanup. [1] [2] [3] [4] [5]Configuration and API Updates
launchConfigproperty and expose it through the configuration reader. [1] [2] [3]User Guidance and Documentation
cmake.launchConfigandcmake.debugConfigfields are set (as the latter are ignored for the launch path), and improved error/warning messages for ambiguous or missing tasks. [1] [2]These changes provide advanced users and embedded developers with much more flexibility for customizing their build/run workflows directly from CMake Tools.