Skip to content

Commit 7e6d7c0

Browse files
committed
Restarting PowerShell session now retains previous configuration
This change fixes PowerShell#807 which states that restarting the current PowerShell session using the "Restart Current Session" command doesn't retain the current session configuration if the user previously switched their configuration using the session menu. The fix is to change the call to restartSession to use the current session configuration when this command is invoked.
1 parent fece5be commit 7e6d7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/session.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ export class SessionManager {
710710

711711
new SessionMenuItem(
712712
"Restart Current Session",
713-
() => { this.restartSession(); }),
713+
() => { this.restartSession(this.sessionConfiguration); }),
714714
];
715715
}
716716
else if (this.sessionStatus === SessionStatus.Failed) {

0 commit comments

Comments
 (0)