-
Notifications
You must be signed in to change notification settings - Fork 511
Enhance additionalPowerShellExes
setting
#4686
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
It might not have been bothering anyone but me, but it was really bothering me. |
|
||
// Handle Windows where '.exe' and 'powershell' are things | ||
if (this.platformDetails.operatingSystem === OperatingSystem.Windows) { | ||
if (!exePath.endsWith("pwsh.exe") && !exePath.endsWith("powershell.exe")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree probably need some tests to validate all these potential permutations, looks good to me though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized last night I should also be able to handle the common case of ~/
, and share that and the quote-stripping with the cwd
setting, and then do a preview and then work on saving the cwd
in a cache instead of a setting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so I decided that since the Python extension uses untildify
I'm fine bringing it too, which means I'll get that taken care of...in the next PR. @JustinGrote could you give this a review? It's got tests now!
ce9f6d7
to
05b837f
Compare
additionalPowerShellExes
settingadditionalPowerShellExes
setting
Now the warning that's emitted when an additional PowerShell executable isn't found can be suppressed with a setting. If the setting's value has single or double quotes, it handles it. If the executable name wasn't appended, it handles it. Smarter!
05b837f
to
350eaff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Sorry for the delay in testing, it LGTM to me too even tho it just got merged :) |
Now the warning that's emitted when an additional PowerShell executable isn't found can be suppressed with a setting. If the setting's value has single or double quotes, it handles it. If the executable name wasn't appended, it handles it. Smarter!
Work in progress because it needs unit tests... @JustinGrote what do you think of this?