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 <[email protected]>
  • Loading branch information
danarad05 authored and amiramw committed Mar 9, 2021
1 parent 5547c25 commit 926d71f
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 926d71f

Please sign in to comment.