We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
powerShellDefaultVersion
1 parent 11c7f3a commit d4f2164Copy full SHA for d4f2164
src/session.ts
@@ -504,7 +504,7 @@ export class SessionManager implements Middleware {
504
505
}
506
foundPowerShell = defaultPowerShell ?? await powershellExeFinder.getFirstAvailablePowerShellInstallation();
507
- if (defaultPowerShell === undefined && foundPowerShell !== undefined) {
+ if (wantedName !== "" && defaultPowerShell === undefined && foundPowerShell !== undefined) {
508
void this.logger.writeAndShowWarning(`The 'powerShellDefaultVersion' setting was '${wantedName}' but this was not found!`
509
+ ` Instead using first available installation '${foundPowerShell.displayName}' at '${foundPowerShell.exePath}'!`);
510
0 commit comments