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 1a13c43 commit 7072afcCopy full SHA for 7072afc
src/session.ts
@@ -604,6 +604,21 @@ export class SessionManager {
604
}
605
606
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
622
private getBuiltInPowerShellPath(use32Bit: boolean): string | null {
623
624
// Find the path to powershell.exe based on the current platform
0 commit comments