[PR #7659] Give Tab ownership of its SwitchToTab command #26965

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

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

State: closed
Merged: Yes


Currently, CommandPalette creates and maintains the SwitchToTab
commands used for the ATS. When Command goes into the
TerminalSettingsModel, the palette won't be able to access Command's
implementation type, making it difficult for CommandPalette to tell
Command to listen to Tab for changes.

This PR changes the relationship up so Tab now manages its
SwitchToTab command, and CommandPalette just plops the command from
Tab into its list.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7659 **State:** closed **Merged:** Yes --- Currently, `CommandPalette` creates and maintains the `SwitchToTab` commands used for the ATS. When `Command` goes into the TerminalSettingsModel, the palette won't be able to access `Command`'s implementation type, making it difficult for `CommandPalette` to tell `Command` to listen to `Tab` for changes. This PR changes the relationship up so `Tab` now manages its `SwitchToTab` command, and `CommandPalette` just plops the command from `Tab` into its list.
claunia added the pull-request label 2026-01-31 09:19:09 +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#26965