Skip to content

Commit

Permalink
multi root repository : fixed selected repository is not populated
Browse files Browse the repository at this point in the history
fixed selected repository is not populated for git menu commands when
using multi root repository

Signed-off-by: ChayaLau <[email protected]>
  • Loading branch information
ChayaLau committed Aug 24, 2021
1 parent 5e5b015 commit eadd1f6
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 eadd1f6

Please sign in to comment.