Пример #1
0
        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);
        }
Пример #2
0
        public static async Task InitializeAsync(AsyncPackage package)
        {
            await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

            var pct = await package.GetServiceAsync(typeof(SVsRegisterPriorityCommandTarget)) as IVsRegisterPriorityCommandTarget;

            Assumes.Present(pct);

            var interceptor = new NoStepDebuggingInDesignMode(package);

            pct.RegisterPriorityCommandTarget(0, interceptor, out _);
        }
Пример #3
0
        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);
        }