Skip to content

Commit 7072afc

Browse files
rkeithhilldaviwil
authored andcommitted
Catch up merge from master.
1 parent 1a13c43 commit 7072afc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/session.ts

+15
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,21 @@ export class SessionManager {
604604
}
605605
}
606606

607+
private getPowerShellCorePaths(): string[] {
608+
var paths: string[] = [];
609+
if (this.isWindowsOS) {
610+
const rootInstallPath = process.env.ProgramFiles + '\\PowerShell'
611+
612+
var dirs =
613+
fs.readdirSync(rootInstallPath)
614+
.filter(file => fs.lstatSync(path.join(rootInstallPath, file)).isDirectory());
615+
616+
paths.concat(dirs);
617+
}
618+
619+
return paths;
620+
}
621+
607622
private getBuiltInPowerShellPath(use32Bit: boolean): string | null {
608623

609624
// Find the path to powershell.exe based on the current platform

0 commit comments

Comments
 (0)