protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { DTE2 appObject = await GetServiceAsync(typeof(SDTE)) as DTE2; IVsSolution ptrSolution = await GetServiceAsync(typeof(SVsSolution)) as IVsSolution; VSEventManager.SharedManager.Setup(appObject, ptrSolution); ProjectHeroSettingManager.Manager.PreLoadSettings(ServiceProvider.GlobalProvider); ProjectHeroFactory.SharedInstance.InitPluginPackage(this); ProjectHeroFactory.SharedInstance.InitApplicationObject(appObject); ProjectHeroCommand.Initialize(this); ProjectHeroToolWindowCommand.Initialize(this); }
/// <summary> /// Initializes the singleton instance of the command. /// </summary> /// <param name="package">Owner package, not null.</param> public static void Initialize(Package package) { Instance = new ProjectHeroCommand(package); }