You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix select preset/kit commands to return strings for task variable substitution (#4825)
* Initial plan
* fix: return preset/kit name instead of boolean from select commands
The select commands (selectConfigurePreset, selectBuildPreset,
selectTestPreset, selectPackagePreset, selectWorkflowPreset, selectKit)
now return the selected preset/kit name as a string instead of a boolean.
This allows them to work correctly as ${command:...} variables in
tasks.json, which require a string result.
Empty string is returned on cancellation (falsy), so all existing
callers that check truthiness continue to work correctly.
Fixes#4239
Co-authored-by: Omotola <[email protected]>
* Fix merge conflict markers in CHANGELOG.md
Co-authored-by: hanniavalera <[email protected]>
Agent-Logs-Url: https://github.com/microsoft/vscode-cmake-tools/sessions/7e265975-65ca-40bf-87fc-2d06d58ae0a5
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Omotola <[email protected]>
Co-authored-by: Omotola <[email protected]>
Co-authored-by: Hannia Valera <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Improvements:
31
31
- Honor `debugger.workingDirectory` from the CMake File API when debugging a target, so that the `DEBUGGER_WORKING_DIRECTORY` target property is used as the debugger working directory. [#4595](https://github.com/microsoft/vscode-cmake-tools/issues/4595)
32
32
33
33
Bug Fixes:
34
+
- Fix `${command:cmake.selectConfigurePreset}` (and other preset/kit selection commands) failing with "command did not return a result of type string" when used in `tasks.json` as a command variable. The commands now return the selected preset or kit name instead of a boolean. [#4239](https://github.com/microsoft/vscode-cmake-tools/issues/4239)
34
35
- Fix renaming a CMake project creating a duplicate node in the Project Outline instead of replacing the existing one. [#4343](https://github.com/microsoft/vscode-cmake-tools/issues/4343)
35
36
- Remove internal stack traces from the Output pane when a subprocess fails. Error messages now show only human-readable information; stack traces are still available in debug-level logging. [#4807](https://github.com/microsoft/vscode-cmake-tools/issues/4807)
36
37
- Fix duplicate launch configurations in the ctest debug picker when both `.vscode/launch.json` and a `.code-workspace` file exist. [#4586](https://github.com/microsoft/vscode-cmake-tools/issues/4586)
0 commit comments