We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2c925d commit 17c520aCopy full SHA for 17c520a
src/session.ts
@@ -127,7 +127,9 @@ export class SessionManager implements Middleware {
127
let powerShellExeDetails;
128
if (this.sessionSettings.powerShellDefaultVersion) {
129
for (const details of this.powershellExeFinder.enumeratePowerShellInstallations()) {
130
- if (details.displayName === this.sessionSettings.powerShellDefaultVersion) {
+ // Need to compare names case-insensitively, from https://stackoverflow.com/a/2140723
131
+ const wantedName = this.sessionSettings.powerShellDefaultVersion;
132
+ if (wantedName.localeCompare(details.displayName, undefined, { sensitivity: "accent" }) === 0) {
133
powerShellExeDetails = details;
134
break;
135
}
0 commit comments