[PR #10373] Bugfix: serialize iterable commands #28019

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

Original Pull Request: https://github.com/microsoft/terminal/pull/10373

State: closed
Merged: Yes


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.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/10373 **State:** closed **Merged:** Yes --- ## 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.
claunia added the pull-request label 2026-01-31 09:25:47 +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#28019