Skip to content

Commit c590d8d

Browse files
committed
One more fix for session restarting issue #807
This change fixes one remaining issue with restarting PowerShell sessions that were started using the session menu.
1 parent 543a8ae commit c590d8d

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
@@ -262,7 +262,7 @@ export class SessionManager {
262262

263263
private registerCommands() : void {
264264
this.registeredCommands = [
265-
vscode.commands.registerCommand('PowerShell.RestartSession', () => { this.restartSession(); }),
265+
vscode.commands.registerCommand('PowerShell.RestartSession', () => { this.restartSession(this.sessionConfiguration); }),
266266
vscode.commands.registerCommand(this.ShowSessionMenuCommandName, () => { this.showSessionMenu(); }),
267267
vscode.workspace.onDidChangeConfiguration(() => this.onConfigurationUpdated()),
268268
vscode.commands.registerCommand('PowerShell.ShowSessionConsole', (isExecute?: boolean) => { this.showSessionConsole(isExecute); })

0 commit comments

Comments
 (0)