protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            // Tool windows
            RunnerWindow.Initialize(this);
            ThemeWindow.Initialize(this);
            MultiInstanceWindow.Initialize(this);

            // Commands
            await TestCommand.InitializeAsync(this);

            await RunnerWindowCommand.InitializeAsync(this);

            await ThemeWindowCommand.InitializeAsync(this);

            await MultiInstanceWindowCommand.InitializeAsync(this);
        }
예제 #2
0
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            // Tool windows
            RunnerWindow.Initialize(this);
            ThemeWindow.Initialize(this);
            MultiInstanceWindow.Initialize(this);

            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            // Commands
            await RunnerWindowCommand.InitializeAsync(this);

            await ThemeWindowCommand.InitializeAsync(this);

            await MultiInstanceWindowCommand.InitializeAsync(this);

            await BuildActiveProjectAsyncCommand.InitializeAsync(this);

            await BuildSolutionAsyncCommand.InitializeAsync(this);

            VS.Events.DocumentEvents.AfterDocumentWindowHide  += DocumentEvents_AfterDocumentWindowHide;
            VS.Events.DocumentEvents.BeforeDocumentWindowShow += DocumentEvents_BeforeDocumentWindowShow;
        }