Skip to content

Commit 600de8c

Browse files
add modify settings in session menu
1 parent c7f97c5 commit 600de8c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/session.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ export class SessionManager implements Middleware {
667667

668668
const powerShellItems =
669669
availablePowerShellExes
670-
.filter((item) => item.displayName.toLowerCase() !== this.PowerShellExeDetails.displayName)
670+
.filter((item) => item.displayName !== this.PowerShellExeDetails.displayName)
671671
.map((item) => {
672672
return new SessionMenuItem(
673673
`Switch to: ${item.displayName}`,
@@ -679,16 +679,20 @@ export class SessionManager implements Middleware {
679679
sessionText,
680680
() => { vscode.commands.executeCommand("PowerShell.ShowLogs"); }),
681681

682+
// Add all of the different PowerShell options
683+
...powerShellItems,
684+
682685
new SessionMenuItem(
683686
"Restart Current Session",
684687
() => { this.restartSession(); }),
685688

686-
// Add all of the different PowerShell options
687-
...powerShellItems,
688-
689689
new SessionMenuItem(
690690
"Open Session Logs Folder",
691691
() => { vscode.commands.executeCommand("PowerShell.OpenLogFolder"); }),
692+
693+
new SessionMenuItem(
694+
"Modify 'powerShell.powerShellAdditionalExePaths' in Settings",
695+
() => { vscode.commands.executeCommand("workbench.action.openSettingsJson"); }),
692696
];
693697

694698
vscode

0 commit comments

Comments
 (0)