[PR #8053] Make ITab an unsealed runtimeclass #27076

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

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

State: closed
Merged: Yes


TerminalTab and SettingsTab share some implementation details. The
close submenu introduced in #7728 is a good example of functionality
that is consistent across all tabs. This PR transforms ITab from an
interface, into an unsealed runtime class to de-duplicate some
functionality. Most of the logic from SettingsTab was moved there
because I expect the default behavior of a tab to resemble the
SettingsTab over a TerminalTab.

References

Verified that Close submenu work was transferred over (#7728, #7961, #8010).

Validation Steps Performed

Check close submenu on first/last tab when multiple tabs are open.

Closes #7969

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8053 **State:** closed **Merged:** Yes --- `TerminalTab` and `SettingsTab` share some implementation details. The close submenu introduced in #7728 is a good example of functionality that is consistent across all tabs. This PR transforms `ITab` from an interface, into an [unsealed runtime class] to de-duplicate some functionality. Most of the logic from `SettingsTab` was moved there because I expect the default behavior of a tab to resemble the `SettingsTab` over a `TerminalTab`. ## References Verified that Close submenu work was transferred over (#7728, #7961, #8010). ## Validation Steps Performed Check close submenu on first/last tab when multiple tabs are open. Closes #7969 [unsealed runtime class]: https://docs.microsoft.com/en-us/uwp/midl-3/intro#base-classes
claunia added the pull-request label 2026-01-31 09:19:51 +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#27076