[PR #10373] [MERGED] Bugfix: serialize iterable commands #28014

Open
opened 2026-01-31 09:25:46 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10373
Author: @carlos-zamora
Created: 6/9/2021
Status: ✅ Merged
Merged: 6/10/2021
Merged by: @undefined

Base: main ← Head: dev/cazamor/tsm/am/iterable-commands


📝 Commits (1)

  • f82934b Bugfix: serialize iterable commands

📊 Changes

5 files changed (+77 additions, -26 deletions)

View changed files

📝 src/cascadia/LocalTests_SettingsModel/SerializationTests.cpp (+23 -0)
📝 src/cascadia/TerminalSettingsModel/ActionMap.cpp (+27 -6)
📝 src/cascadia/TerminalSettingsModel/ActionMap.h (+2 -1)
📝 src/cascadia/TerminalSettingsModel/ActionMapSerialization.cpp (+22 -16)
📝 src/cascadia/TerminalSettingsModel/Command.cpp (+3 -3)

📄 Description

Summary of the Pull Request

Fixes a bug where top-level iterable commands were not serialized.

PR Checklist

Detailed Description of the Pull Request / Additional comments

  • Command::ToJson:
    • iterable commands deserve the same treatment as nested commands
  • ActionMap:
    • Similar to how we store nested commands, iterable commands need to be handled separately from standard commands. Then, when generating the name map, we make sure we export the iterable commands at the same time we export the nested commands.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/10373 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 6/9/2021 **Status:** ✅ Merged **Merged:** 6/10/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/cazamor/tsm/am/iterable-commands` --- ### 📝 Commits (1) - [`f82934b`](https://github.com/microsoft/terminal/commit/f82934b000e268882f45cc9f2e3a40e369f3a071) Bugfix: serialize iterable commands ### 📊 Changes **5 files changed** (+77 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_SettingsModel/SerializationTests.cpp` (+23 -0) 📝 `src/cascadia/TerminalSettingsModel/ActionMap.cpp` (+27 -6) 📝 `src/cascadia/TerminalSettingsModel/ActionMap.h` (+2 -1) 📝 `src/cascadia/TerminalSettingsModel/ActionMapSerialization.cpp` (+22 -16) 📝 `src/cascadia/TerminalSettingsModel/Command.cpp` (+3 -3) </details> ### 📄 Description ## Summary of the Pull Request Fixes a bug where top-level iterable commands were not serialized. ## PR Checklist * [X] Closes #10365 * [X] Tests added/passed ## Detailed Description of the Pull Request / Additional comments - `Command::ToJson`: - iterable commands deserve the same treatment as nested commands - `ActionMap`: - Similar to how we store nested commands, iterable commands need to be handled separately from standard commands. Then, when generating the name map, we make sure we export the iterable commands at the same time we export the nested commands. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:25:46 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28014