Skip to content

Grab prerelease if it's available from PSCurrentVersion #1073

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

Conversation

TylerLeonhardt
Copy link
Member

PSVersion is only a Version type so it has no information on prerelease tag. This caused an issue in vscode-powershell while trying to determine the version for the Update PowerShell feature.

This change will now expose a PSVersionString that will first check PSCurrentVersion if it's available and then fallback to Version if not.

I also removed some references to VersionUtils.PSVersion that were not needed.

Also, this includes a small change due to a breaking change in Omnisharp.

@TylerLeonhardt TylerLeonhardt merged commit df295ec into PowerShell:master Oct 28, 2019
@TylerLeonhardt TylerLeonhardt deleted the fix-psversion-not-sending-prerelease branch April 11, 2020 19:39
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.

2 participants