protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); await this.RegisterCommandsAsync(); var menuCommandService = (IMenuCommandService) await GetServiceAsync(typeof(IMenuCommandService)); CommandHelper.AddMenuCommand(menuCommandService, PackageIds.TGitGitFlowMenu, CommandHelper.SolutionVisibility_BeforeQueryStatus); CommandHelper.AddMenuCommand(menuCommandService, PackageIds.TGitGitHubFlowMenu, CommandHelper.GitHubFlow_BeforeQueryStatus); CommandHelper.AddMenuCommand(menuCommandService, PackageIds.TGitSVNMenu, CommandHelper.GitSvn_BeforeQueryStatus); }