Skip to content

Conversation

andyleejordan
Copy link
Member

We missed the middle layer: public host redirected to internal host, but
then internal host needed to redirect to _hostInfo.PSHost. Now that it
does, $Host.PrivateData actually shows the correct console color
values, and so Write-Error 'something' shows up in the correct color.

Also applied Roslynator suggestions to clean some things up.

We missed the middle layer: public host redirected to internal host, but
then internal host needed to redirect to `_hostInfo.PSHost`. Now that it
does, `$Host.PrivateData` actually shows the correct console color
values, and so `Write-Error 'something'` shows up in the correct color.

Also applied Roslynator suggestions to clean some things up.
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

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

LGTM

@andyleejordan andyleejordan enabled auto-merge (squash) February 28, 2022 22:01
@andyleejordan andyleejordan merged commit cad2aa7 into master Feb 28, 2022
@andyleejordan andyleejordan deleted the andschwa/private-data branch February 28, 2022 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants