Skip to content

Commit

Permalink
9158-bug-right-click-on-explorer-throws-exception
Browse files Browse the repository at this point in the history
Right-click on file or folder in explorer panel throws exception

Signed-off-by: Dan Arad <dan.arad@sap.com>
  • Loading branch information
danarad05 committed Mar 8, 2021
1 parent 5547c25 commit 5566442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/workspace/src/browser/workspace-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5566442

Please sign in to comment.