public fixWindowsPowerShellPath()

in vscode-extension/src/platform.ts [122:137]


    public fixWindowsPowerShellPath(configuredPowerShellPath: string): string {
        const altWinPS = this.findWinPS({ useAlternateBitness: true });

        if (!altWinPS) {
            return configuredPowerShellPath;
        }

        const lowerAltWinPSPath = altWinPS.exePath.toLocaleLowerCase();
        const lowerConfiguredPath = configuredPowerShellPath.toLocaleLowerCase();

        if (lowerConfiguredPath === lowerAltWinPSPath) {
            return this.findWinPS().exePath;
        }

        return configuredPowerShellPath;
    }