Do we really need the DispatchCommon class? #16508

Closed
opened 2026-01-31 05:14:14 +00:00 by claunia · 2 comments
Owner

Originally created by @j4james on GitHub (Jan 25, 2022).

Originally assigned to: @j4james on GitHub.

Description of the new feature/enhancement

If we move the DispatchCommon::s_ResizeWindow implementation into the ConhostInternalGetSet class, then DispatchCommon is just a set of static functions that indirectly call into the ConGetSet interface. The calling code could just as easily call the ConGetSet API directly.

Proposed technical implementation details (optional)

Everywhere that we're making a call like this:

DispatchCommon::s_RefreshWindow(*_pConApi);

we'd simple change it to something like this:

_pConApi->RefreshWindow();
Originally created by @j4james on GitHub (Jan 25, 2022). Originally assigned to: @j4james on GitHub. # Description of the new feature/enhancement If we move the `DispatchCommon::s_ResizeWindow` implementation into the `ConhostInternalGetSet` class, then `DispatchCommon` is just a set of static functions that indirectly call into the `ConGetSet` interface. The calling code could just as easily call the `ConGetSet` API directly. # Proposed technical implementation details (optional) Everywhere that we're making a call like this: DispatchCommon::s_RefreshWindow(*_pConApi); we'd simple change it to something like this: _pConApi->RefreshWindow();
Author
Owner

@zadjii-msft commented on GitHub (Jan 26, 2022):

I have no idea why I didn't just do it that way in the first place 😅

@zadjii-msft commented on GitHub (Jan 26, 2022): I have no idea why I didn't just do it that way in the first place 😅
Author
Owner

@ghost commented on GitHub (May 24, 2022):

:tada:This issue was addressed in #12389, which has now been successfully released as Windows Terminal Preview v1.14.143.🎉

Handy links:

@ghost commented on GitHub (May 24, 2022): :tada:This issue was addressed in #12389, which has now been successfully released as `Windows Terminal Preview v1.14.143`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.14.143) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16508