Skip to content

Commit

Permalink
fixed selected repository is not populated to git menu commands
Browse files Browse the repository at this point in the history
fixed selected repository is not populated to git menu commands
  • Loading branch information
ChayaLau committed Aug 24, 2021
1 parent 5e5b015 commit 33b5e28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export class MenusContributionPointHandler {
if (!action.command) {
return Disposable.NULL;
}
const selectedRepository = () => this.toScmArgs(this.scmService.selectedRepository);
const selectedRepository = () => this.toScmArg(this.scmService.selectedRepository);
return this.registerTitleAction(location, action, {
execute: widget => widget instanceof ScmWidget && this.commands.executeCommand(action.command!, selectedRepository()),
isEnabled: widget => widget instanceof ScmWidget && this.commands.isEnabled(action.command!, selectedRepository()),
Expand Down

0 comments on commit 33b5e28

Please sign in to comment.