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

Update to handle PS Core binary name change #1071

Merged
merged 2 commits into from
Oct 26, 2017

Conversation

rkeithhill
Copy link
Contributor

@rkeithhill rkeithhill commented Oct 26, 2017

Fix #1064

Also fixes case where the powerShellExePath setting is no longer valid. This happens when a Windows users installs an updated pre-release version of PS Core which uninstalls the previous version.

Fix PowerShell#1064

Also fixes case where the powerShellExePath setting is no longer valid.  This happens when a Windows users installs an updated pre-release version of PS Core.  That uninstalls previous versions.
@rkeithhill rkeithhill requested a review from daviwil October 26, 2017 04:00
src/platform.ts Outdated
@@ -73,9 +73,15 @@ export function getDefaultPowerShellPath(
}
else if (platformDetails.operatingSystem == OperatingSystem.MacOS) {
powerShellExePath = "/usr/local/bin/powershell";
if (fs.existsSync("/usr/loca/bin/pwsh")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Missed an 'l' in 'local' in the path

Copy link
Contributor

@daviwil daviwil left a comment

Choose a reason for hiding this comment

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

Looks good! The pwsh.exe check is concise and localized, I like it.

@daviwil daviwil added this to the 1.5.0 milestone Oct 26, 2017
@daviwil daviwil merged commit 0def853 into PowerShell:master Oct 26, 2017
@rkeithhill rkeithhill deleted the rkeithhill/is1064-support-pwsh branch April 1, 2019 17:00
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.

Update extension and PSES to handle PS Core rename of binary to pwsh
2 participants