[PR #7283] Make Profile a WinRT object #26879

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

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

State: closed
Merged: Yes


Profile is now a WinRT object in the TerminalApp project.

As with ColorScheme, all of the serialization logic is not exposed via
the idl. TerminalSetingsModel will handle it when it's all moved over.

I removed the "Get" and "Set" prefixes from all of the Profile
functions. It just makes more sense to use the GETSET_PROPERTY macro
to do most of the work for us.

CloseOnExitMode is now an enum off of the Profile.idl.

std::optional<wstring> got converted to hstring (as opposed to
IReference<hstring>). IReference<hstring> is not valid to MIDL.

References

#7141 - Profile is a settings object
#885 - this new settings object will be moved to a new TerminalSettingsModel project

Validation Steps Performed

  • Tests passed
  • Deployment succeeded

Closes #7435

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7283 **State:** closed **Merged:** Yes --- Profile is now a WinRT object in the TerminalApp project. As with ColorScheme, all of the serialization logic is not exposed via the idl. TerminalSetingsModel will handle it when it's all moved over. I removed the "Get" and "Set" prefixes from all of the Profile functions. It just makes more sense to use the `GETSET_PROPERTY` macro to do most of the work for us. `CloseOnExitMode` is now an enum off of the Profile.idl. `std::optional<wstring>` got converted to `hstring` (as opposed to `IReference<hstring>`). `IReference<hstring>` is not valid to MIDL. ## References #7141 - Profile is a settings object #885 - this new settings object will be moved to a new TerminalSettingsModel project ## Validation Steps Performed - [x] Tests passed - [x] Deployment succeeded Closes #7435
claunia added the pull-request label 2026-01-31 09:18:40 +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#26879