File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -667,7 +667,7 @@ export class SessionManager implements Middleware {
667
667
668
668
const powerShellItems =
669
669
availablePowerShellExes
670
- . filter ( ( item ) => item . displayName . toLowerCase ( ) !== this . PowerShellExeDetails . displayName )
670
+ . filter ( ( item ) => item . displayName !== this . PowerShellExeDetails . displayName )
671
671
. map ( ( item ) => {
672
672
return new SessionMenuItem (
673
673
`Switch to: ${ item . displayName } ` ,
@@ -679,16 +679,20 @@ export class SessionManager implements Middleware {
679
679
sessionText ,
680
680
( ) => { vscode . commands . executeCommand ( "PowerShell.ShowLogs" ) ; } ) ,
681
681
682
+ // Add all of the different PowerShell options
683
+ ...powerShellItems ,
684
+
682
685
new SessionMenuItem (
683
686
"Restart Current Session" ,
684
687
( ) => { this . restartSession ( ) ; } ) ,
685
688
686
- // Add all of the different PowerShell options
687
- ...powerShellItems ,
688
-
689
689
new SessionMenuItem (
690
690
"Open Session Logs Folder" ,
691
691
( ) => { vscode . commands . executeCommand ( "PowerShell.OpenLogFolder" ) ; } ) ,
692
+
693
+ new SessionMenuItem (
694
+ "Modify 'powerShell.powerShellAdditionalExePaths' in Settings" ,
695
+ ( ) => { vscode . commands . executeCommand ( "workbench.action.openSettingsJson" ) ; } ) ,
692
696
] ;
693
697
694
698
vscode
You can’t perform that action at this time.
0 commit comments