Skip to content
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

testing removing consoleecho #988

Merged
merged 3 commits into from
Jul 10, 2019

Conversation

TylerLeonhardt
Copy link
Member

No description provided.

@PowerShell PowerShell deleted a comment Jul 2, 2019
@PowerShell PowerShell deleted a comment Jul 2, 2019
@PowerShell PowerShell deleted a comment Jul 2, 2019
@PowerShell PowerShell deleted a comment Jul 2, 2019
@TylerLeonhardt TylerLeonhardt marked this pull request as ready for review July 8, 2019 22:05
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, thanks @TylerLeonhardt!

Just some optional notes

/// <summary>
/// True if we are running in PowerShell 7, false otherwise.
/// </summary>
public static bool IsPS7 { get; } = PSVersion.Major == 7;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider future proofing this somewhat by making it IsPS7OrGreater. It doesn't really matter since we aren't using it, but could save us some trouble if it gets used somewhere.

Copy link
Member Author

Choose a reason for hiding this comment

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

I’d like to keep this as IsPS7. I get the idea that PS8 will maybe be on .NET 5 which might have differences… not too mention that will be years out. Plus, if PS7 makes it back into Windows in a few years, maybe there will be a day where we drop IsPS5 so this file is certainly “living” anyway.

src/PowerShellEditorServices/Utility/Utils.cs Outdated Show resolved Hide resolved
src/PowerShellEditorServices/Utility/Utils.cs Outdated Show resolved Hide resolved
src/PowerShellEditorServices/Utility/Utils.cs Outdated Show resolved Hide resolved
Co-Authored-By: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
@PowerShell PowerShell deleted a comment Jul 9, 2019
@TylerLeonhardt TylerLeonhardt merged commit f2c1159 into PowerShell:master Jul 10, 2019
@TylerLeonhardt TylerLeonhardt deleted the remove-consoleecho branch July 10, 2019 16:04
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.

None yet

3 participants