protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); await AutoSave.InitializeAsync(this); await ReOpenDocument.InitializeAsync(this); await NoStepDebuggingInDesignMode.InitializeAsync(this); await Restart.InitializeAsync(this); await DeleteOutputArtifacts.InitializeAsync(this); await OutputVerbosity.InitializeAsync(this); await ResetZoomLevel.InitializeAsync(this); await JustMyCode.InitializeAsync(this); await BuildStats.InitializeAsync(this); await FindInSolutionExplorer.InitializeAsync(this); //await SearchInFolder.InitializeAsync(this); await OpenLanguageSettings.InitializeAsync(this); await CloseActiveDocument.InitializeAsync(this); }
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); WindowsJumpLists.Initialize(); await AutoSave.InitializeAsync(this); await ReOpenDocument.InitializeAsync(this); await NoStepDebuggingInDesignMode.InitializeAsync(this); await Restart.InitializeAsync(this); await DeleteOutputArtifacts.InitializeAsync(this); await OutputVerbosity.InitializeAsync(this); await ResetZoomLevel.InitializeAsync(this); await JustMyCode.InitializeAsync(this); await BuildStats.InitializeAsync(this); await BuildOrdered.InitializeAsync(this); await FindInSolutionExplorer.InitializeAsync(this); await OpenLanguageSettings.InitializeAsync(this); await CloseActiveDocument.InitializeAsync(this); await FocusSolutionExplorer.InitializeAsync(this); await DuplicateWindow.InitializeAsync(this); await ClearRecentFilesAndProjects.InitializeAsync(this); await BrowseSuggestions.InitializeAsync(this); await SelectWholeLineCommand.InitializeAsync(this); await OpenReleaseNotes.InitializeAsync(this); await OpenRoadmap.InitializeAsync(this); }
public static async Task InitializeAsync(AsyncPackage package) { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(package.DisposalToken); var commandService = await package.GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService; Assumes.Present(commandService); var sln = await package.GetServiceAsync(typeof(SVsSolution)) as IVsSolution; var dte = await package.GetServiceAsync(typeof(DTE)) as DTE2; var pct = await package.GetServiceAsync(typeof(SVsRegisterPriorityCommandTarget)) as IVsRegisterPriorityCommandTarget; Assumes.Present(pct); var interceptor = new DeleteOutputArtifacts(package, sln, dte); pct.RegisterPriorityCommandTarget(0, interceptor, out _); }