3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
+ import { URI } from '../../../../base/common/uri.js' ;
6
7
import { EditorContributionInstantiation , registerEditorContribution } from '../../../../editor/browser/editorExtensions.js' ;
7
8
import { localize , localize2 } from '../../../../nls.js' ;
8
9
import { registerAction2 } from '../../../../platform/actions/common/actions.js' ;
@@ -17,17 +18,10 @@ import { IOpenerService } from '../../../../platform/opener/common/opener.js';
17
18
import { IProgressService } from '../../../../platform/progress/common/progress.js' ;
18
19
import { Registry } from '../../../../platform/registry/common/platform.js' ;
19
20
import { 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' ;
21
22
import { IViewContainersRegistry , IViewsRegistry , Extensions as ViewContainerExtensions , ViewContainerLocation } from '../../../common/views.js' ;
23
+ import { IViewsService } from '../../../services/views/common/viewsService.js' ;
22
24
import { 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' ;
31
25
import { testingConfiguration } from '../common/configuration.js' ;
32
26
import { TestCommandId , Testing } from '../common/constants.js' ;
33
27
import { ITestCoverageService , TestCoverageService } from '../common/testCoverageService.js' ;
@@ -39,16 +33,22 @@ import { ITestResultStorage, TestResultStorage } from '../common/testResultStora
39
33
import { ITestService } from '../common/testService.js' ;
40
34
import { TestService } from '../common/testServiceImpl.js' ;
41
35
import { ITestItem , ITestRunProfileReference , TestRunProfileBitset } from '../common/testTypes.js' ;
36
+ import { TestingChatAgentToolContribution } from '../common/testingChatAgentTool.js' ;
42
37
import { TestingContentProvider } from '../common/testingContentProvider.js' ;
43
38
import { TestingContextKeys } from '../common/testingContextKeys.js' ;
44
39
import { ITestingContinuousRunService , TestingContinuousRunService } from '../common/testingContinuousRunService.js' ;
45
40
import { ITestingDecorationsService } from '../common/testingDecorations.js' ;
46
41
import { 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' ;
49
45
import { allTestActions , discoverAndRunTests } from './testExplorerActions.js' ;
50
46
import './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' ;
52
52
53
53
registerSingleton ( ITestService , TestService , InstantiationType . Delayed ) ;
54
54
registerSingleton ( ITestResultStorage , TestResultStorage , InstantiationType . Delayed ) ;
@@ -139,9 +139,10 @@ registerAction2(CloseTestPeek);
139
139
registerAction2 ( ToggleTestingPeekHistory ) ;
140
140
registerAction2 ( CollapsePeekStack ) ;
141
141
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 ) ;
145
146
146
147
registerEditorContribution ( Testing . OutputPeekContributionId , TestingOutputPeekController , EditorContributionInstantiation . AfterFirstRender ) ;
147
148
registerEditorContribution ( Testing . DecorationsContributionId , TestingDecorations , EditorContributionInstantiation . AfterFirstRender ) ;
0 commit comments