diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminalService.ts b/src/vs/workbench/parts/terminal/electron-browser/terminalService.ts index 1cde5cc9375..53a7eaecb0a 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminalService.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminalService.ts @@ -70,7 +70,11 @@ export class TerminalService extends AbstractTerminalService implements ITermina } }); ipc.on('vscode:osResume', () => { - this.getActiveTab().terminalInstances.forEach(instance => instance.forceRedraw()); + const activeTab = this.getActiveTab(); + if (!activeTab) { + return; + } + activeTab.terminalInstances.forEach(instance => instance.forceRedraw()); }); }