Skip to content

Commit e3ce1fe

Browse files
authored
1 parent 974c28e commit e3ce1fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/terminal/browser/terminalService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ export class TerminalService implements ITerminalService {
580580
this._shutdownWindowCount = await this._nativeDelegate?.getWindowCount();
581581
const shouldReviveProcesses = this._shouldReviveProcesses(reason);
582582
if (shouldReviveProcesses) {
583-
await this._localTerminalService?.persistTerminalState();
583+
await this._primaryOffProcessTerminalService?.persistTerminalState();
584584
}
585585

586586
// Persist terminal _processes_
@@ -648,7 +648,7 @@ export class TerminalService implements ITerminalService {
648648

649649
// Clear terminal layout info only when not persisting
650650
if (!this._shouldReviveProcesses(e.reason)) {
651-
this._localTerminalService?.setTerminalLayoutInfo(undefined);
651+
this._primaryOffProcessTerminalService?.setTerminalLayoutInfo(undefined);
652652
}
653653
}
654654

0 commit comments

Comments
 (0)