33 * Licensed under the MIT License. See License.txt in the project root for license information.
44 *--------------------------------------------------------------------------------------------*/
55
6+ import { URI } from '../../../../base/common/uri.js' ;
67import { EditorContributionInstantiation , registerEditorContribution } from '../../../../editor/browser/editorExtensions.js' ;
78import { localize , localize2 } from '../../../../nls.js' ;
89import { registerAction2 } from '../../../../platform/actions/common/actions.js' ;
@@ -17,17 +18,10 @@ import { IOpenerService } from '../../../../platform/opener/common/opener.js';
1718import { IProgressService } from '../../../../platform/progress/common/progress.js' ;
1819import { Registry } from '../../../../platform/registry/common/platform.js' ;
1920import { ViewPaneContainer } from '../../../browser/parts/views/viewPaneContainer.js' ;
20- import { IWorkbenchContributionsRegistry , Extensions as WorkbenchExtensions } from '../../../common/contributions.js' ;
21+ import { registerWorkbenchContribution2 , WorkbenchPhase } from '../../../common/contributions.js' ;
2122import { IViewContainersRegistry , IViewsRegistry , Extensions as ViewContainerExtensions , ViewContainerLocation } from '../../../common/views.js' ;
23+ import { IViewsService } from '../../../services/views/common/viewsService.js' ;
2224import { REVEAL_IN_EXPLORER_COMMAND_ID } from '../../files/browser/fileConstants.js' ;
23- import { CodeCoverageDecorations } from './codeCoverageDecorations.js' ;
24- import { testingResultsIcon , testingViewIcon } from './icons.js' ;
25- import { TestCoverageView } from './testCoverageView.js' ;
26- import { TestingDecorationService , TestingDecorations } from './testingDecorations.js' ;
27- import { TestingExplorerView } from './testingExplorerView.js' ;
28- import { CloseTestPeek , CollapsePeekStack , GoToNextMessageAction , GoToPreviousMessageAction , OpenMessageInEditorAction , TestResultsView , TestingOutputPeekController , TestingPeekOpener , ToggleTestingPeekHistory } from './testingOutputPeek.js' ;
29- import { TestingProgressTrigger } from './testingProgressUiService.js' ;
30- import { TestingViewPaneContainer } from './testingViewPaneContainer.js' ;
3125import { testingConfiguration } from '../common/configuration.js' ;
3226import { TestCommandId , Testing } from '../common/constants.js' ;
3327import { ITestCoverageService , TestCoverageService } from '../common/testCoverageService.js' ;
@@ -39,16 +33,22 @@ import { ITestResultStorage, TestResultStorage } from '../common/testResultStora
3933import { ITestService } from '../common/testService.js' ;
4034import { TestService } from '../common/testServiceImpl.js' ;
4135import { ITestItem , ITestRunProfileReference , TestRunProfileBitset } from '../common/testTypes.js' ;
36+ import { TestingChatAgentToolContribution } from '../common/testingChatAgentTool.js' ;
4237import { TestingContentProvider } from '../common/testingContentProvider.js' ;
4338import { TestingContextKeys } from '../common/testingContextKeys.js' ;
4439import { ITestingContinuousRunService , TestingContinuousRunService } from '../common/testingContinuousRunService.js' ;
4540import { ITestingDecorationsService } from '../common/testingDecorations.js' ;
4641import { ITestingPeekOpener } from '../common/testingPeekOpener.js' ;
47- import { LifecyclePhase } from '../../../services/lifecycle/common/lifecycle.js' ;
48- import { IViewsService } from '../../../services/views/common/viewsService.js' ;
42+ import { CodeCoverageDecorations } from './codeCoverageDecorations.js' ;
43+ import { testingResultsIcon , testingViewIcon } from './icons.js' ;
44+ import { TestCoverageView } from './testCoverageView.js' ;
4945import { allTestActions , discoverAndRunTests } from './testExplorerActions.js' ;
5046import './testingConfigurationUi.js' ;
51- import { URI } from '../../../../base/common/uri.js' ;
47+ import { TestingDecorations , TestingDecorationService } from './testingDecorations.js' ;
48+ import { TestingExplorerView } from './testingExplorerView.js' ;
49+ import { CloseTestPeek , CollapsePeekStack , GoToNextMessageAction , GoToPreviousMessageAction , OpenMessageInEditorAction , TestingOutputPeekController , TestingPeekOpener , TestResultsView , ToggleTestingPeekHistory } from './testingOutputPeek.js' ;
50+ import { TestingProgressTrigger } from './testingProgressUiService.js' ;
51+ import { TestingViewPaneContainer } from './testingViewPaneContainer.js' ;
5252
5353registerSingleton ( ITestService , TestService , InstantiationType . Delayed ) ;
5454registerSingleton ( ITestResultStorage , TestResultStorage , InstantiationType . Delayed ) ;
@@ -139,9 +139,10 @@ registerAction2(CloseTestPeek);
139139registerAction2 ( ToggleTestingPeekHistory ) ;
140140registerAction2 ( CollapsePeekStack ) ;
141141
142- Registry . as < IWorkbenchContributionsRegistry > ( WorkbenchExtensions . Workbench ) . registerWorkbenchContribution ( TestingContentProvider , LifecyclePhase . Restored ) ;
143- Registry . as < IWorkbenchContributionsRegistry > ( WorkbenchExtensions . Workbench ) . registerWorkbenchContribution ( TestingPeekOpener , LifecyclePhase . Eventually ) ;
144- Registry . as < IWorkbenchContributionsRegistry > ( WorkbenchExtensions . Workbench ) . registerWorkbenchContribution ( TestingProgressTrigger , LifecyclePhase . Eventually ) ;
142+ registerWorkbenchContribution2 ( TestingContentProvider . ID , TestingContentProvider , WorkbenchPhase . AfterRestored ) ;
143+ registerWorkbenchContribution2 ( TestingPeekOpener . ID , TestingPeekOpener , WorkbenchPhase . Eventually ) ;
144+ registerWorkbenchContribution2 ( TestingProgressTrigger . ID , TestingProgressTrigger , WorkbenchPhase . Eventually ) ;
145+ registerWorkbenchContribution2 ( TestingChatAgentToolContribution . ID , TestingChatAgentToolContribution , WorkbenchPhase . Eventually ) ;
145146
146147registerEditorContribution ( Testing . OutputPeekContributionId , TestingOutputPeekController , EditorContributionInstantiation . AfterFirstRender ) ;
147148registerEditorContribution ( Testing . DecorationsContributionId , TestingDecorations , EditorContributionInstantiation . AfterFirstRender ) ;
0 commit comments