From 926d71f687e7ca78822de063396eca73bb813858 Mon Sep 17 00:00:00 2001 From: Dan Arad <dan.arad@sap.com> Date: Mon, 8 Mar 2021 16:55:19 +0200 Subject: [PATCH] 9158-bug-right-click-on-explorer-throws-exception Right-click on file or folder in explorer panel throws exception Signed-off-by: Dan Arad <dan.arad@sap.com> --- packages/workspace/src/browser/workspace-commands.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/workspace/src/browser/workspace-commands.ts b/packages/workspace/src/browser/workspace-commands.ts index 92095008d848a..37e73007ac7e6 100644 --- a/packages/workspace/src/browser/workspace-commands.ts +++ b/packages/workspace/src/browser/workspace-commands.ts @@ -345,8 +345,8 @@ export class WorkspaceCommandContribution implements CommandContribution { this.openers = await this.openerService.getOpeners(); }); } - const openers = await this.openerService.getOpeners(); - for (const opener of openers) { + this.openers = await this.openerService.getOpeners(); + for (const opener of this.openers) { const openWithCommand = WorkspaceCommands.FILE_OPEN_WITH(opener); registry.registerCommand(openWithCommand, this.newUriAwareCommandHandler({ execute: uri => opener.open(uri),