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),