Skip to content

Finish redirection of $Host.PrivateData #1734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2022
Merged

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