From 1d76f6b056674625aaab35936f016ebd140e8506 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 1 Feb 2020 12:15:24 +0300 Subject: [PATCH] re-fixed #2054 --- terminus-terminal/src/tabContextMenu.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminus-terminal/src/tabContextMenu.ts b/terminus-terminal/src/tabContextMenu.ts index fcfecf85..52d24c9d 100644 --- a/terminus-terminal/src/tabContextMenu.ts +++ b/terminus-terminal/src/tabContextMenu.ts @@ -170,6 +170,9 @@ export class LegacyContextMenu extends TabContextMenuItemProvider { } async getItems (tab: BaseTabComponent, _tabHeader?: TabHeaderComponent): Promise { + if (!this.contextMenuProviders) { + return [] + } if (tab instanceof BaseTerminalTabComponent) { let items: Electron.MenuItemConstructorOptions[] = [] for (const p of this.contextMenuProviders) {