Skip to content

Conversation

@j4james
Copy link
Collaborator

@j4james j4james commented Aug 8, 2024

Summary of the Pull Request

The only reason we had the SetTextAttributes method in ITerminalApi
was to allow for conhost to remap the default color attributes when the
VT PowerShell quirk was active. Since that quirk has now been removed,
there's no need for this API anymore.

References and Relevant Issues

The PowerShell quirk was removed in PR #17666.

Validation Steps Performed

I've had to update all the attribute tests in adapterTest to manually
check the expected attributes, since those checks were previously being
handled in a SetTextAttributes mock which no longer exists.

I've also performed some manual tests of the VT attribute operations to
double check that they're still working as expected.

@j4james j4james marked this pull request as ready for review August 8, 2024 18:14
Copy link
Member

@lhecker lhecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat. Thanks!

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I appreciate your vigilance

@DHowett DHowett merged commit edfa3ea into microsoft:main Aug 8, 2024
@j4james j4james deleted the remove-settextattribute branch August 8, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants