From 33b5e28369cff705aa461f5c0f29fc7d765d9a36 Mon Sep 17 00:00:00 2001 From: ChayaLau Date: Tue, 24 Aug 2021 17:20:12 +0300 Subject: [PATCH] fixed selected repository is not populated to git menu commands fixed selected repository is not populated to git menu commands --- .../src/main/browser/menus/menus-contribution-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-ext/src/main/browser/menus/menus-contribution-handler.ts b/packages/plugin-ext/src/main/browser/menus/menus-contribution-handler.ts index f2b105740afa7..759cefe0a10d4 100644 --- a/packages/plugin-ext/src/main/browser/menus/menus-contribution-handler.ts +++ b/packages/plugin-ext/src/main/browser/menus/menus-contribution-handler.ts @@ -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()),