Skip to content

Correctly handle succeeding ANSI color codes (fix #70416)#70502

Merged
isidorn merged 3 commits intomicrosoft:masterfrom
iansan5653:master
Mar 15, 2019
Merged

Correctly handle succeeding ANSI color codes (fix #70416)#70502
isidorn merged 3 commits intomicrosoft:masterfrom
iansan5653:master

Conversation

@iansan5653
Copy link
Contributor

When parsing for ANSI color codes, succeeding codes will remove previous colors instead of adding new classes while ignoring existing ones. This will fix #70416.

Also added some unit tests and modified one existing one to account for the change.

Avoids color conflicts by removing previous colors when new ones added.
Fixes #70416.
Note: Modifies interference test behavior; prior test
asserted undesired behavior.
@iansan5653
Copy link
Contributor Author

I don't think it's my fault it's failing but I'm not familiar enough with Azure pipelines to say for certain.

@isidorn isidorn merged commit 4861220 into microsoft:master Mar 15, 2019
@isidorn
Copy link
Collaborator

isidorn commented Mar 15, 2019

@iansan5653 thanks a lot for your PR. It looks good to me! Thanks for adding tests. Merging in.
The errors were unrelated to your work.

@isidorn isidorn added this to the March 2019 milestone Mar 15, 2019
@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Mar 15, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

debug Debug viewlet, configurations, breakpoints, adapter issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug console doesn't properly handle succeeding color escape sequences

2 participants