Skip to content

Commit 686b4c9

Browse files
committed
Fix "Show Session Menu" to use updated settings
Otherwise you could add and you'd have to restart to get an updated menu!
1 parent 251c495 commit 686b4c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/session.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,8 @@ Type 'help' to get help.
862862
private async showSessionMenu(): Promise<void> {
863863
const powershellExeFinder = new PowerShellExeFinder(
864864
this.platformDetails,
865-
this.sessionSettings.powerShellAdditionalExePaths,
865+
// We don't pull from session settings because we want them fresh!
866+
getSettings().powerShellAdditionalExePaths,
866867
this.logger);
867868
const availablePowerShellExes = await powershellExeFinder.getAllAvailablePowerShellInstallations();
868869

0 commit comments

Comments
 (0)