@@ -7,7 +7,10 @@ import { CopilotTokenStore, ICopilotTokenStore } from '../../../platform/authent
7
7
import { BlockedExtensionService , IBlockedExtensionService } from '../../../platform/chat/common/blockedExtensionService' ;
8
8
import { IChatMLFetcher } from '../../../platform/chat/common/chatMLFetcher' ;
9
9
import { IChatSessionService } from '../../../platform/chat/common/chatSessionService' ;
10
+ import { TestChatSessionService } from '../../../platform/chat/test/common/testChatSessionService' ;
10
11
import { INaiveChunkingService , NaiveChunkingService } from '../../../platform/chunking/node/naiveChunkerService' ;
12
+ import { MockRunCommandExecutionService } from '../../../platform/commands/common/mockRunCommandExecutionService' ;
13
+ import { IRunCommandExecutionService } from '../../../platform/commands/common/runCommandExecutionService' ;
11
14
import { IConfigurationService } from '../../../platform/configuration/common/configurationService' ;
12
15
import { DefaultsOnlyConfigurationService } from '../../../platform/configuration/test/common/defaultsOnlyConfigurationService' ;
13
16
import { IDebugOutputService } from '../../../platform/debug/common/debugOutputService' ;
@@ -55,6 +58,8 @@ import { IRequestLogger } from '../../../platform/requestLogger/node/requestLogg
55
58
import { IReviewService } from '../../../platform/review/common/reviewService' ;
56
59
import { IScopeSelector } from '../../../platform/scopeSelection/common/scopeSelection' ;
57
60
import { ScopeSelectorImpl } from '../../../platform/scopeSelection/vscode-node/scopeSelectionImpl' ;
61
+ import { ISearchService } from '../../../platform/search/common/searchService' ;
62
+ import { SearchServiceImpl } from '../../../platform/search/vscode-node/searchServiceImpl' ;
58
63
import { ISimulationTestContext , NulSimulationTestContext } from '../../../platform/simulationTestContext/common/simulationTestContext' ;
59
64
import { ITabsAndEditorsService } from '../../../platform/tabs/common/tabsAndEditorsService' ;
60
65
import { TabsAndEditorsServiceImpl } from '../../../platform/tabs/vscode/tabsAndEditorsServiceImpl' ;
@@ -94,6 +99,9 @@ import { CodeMapperService, ICodeMapperService } from '../../prompts/node/codeMa
94
99
import { FixCookbookService , IFixCookbookService } from '../../prompts/node/inline/fixCookbookService' ;
95
100
import { WorkspaceMutationManager } from '../../testing/node/setupTestsFileManager' ;
96
101
import { IToolsService , NullToolsService } from '../../tools/common/toolsService' ;
102
+ import { ToolGroupingService } from '../../tools/common/virtualTools/toolGroupingService' ;
103
+ import { ToolGroupingCache } from '../../tools/common/virtualTools/virtualToolGroupCache' ;
104
+ import { IToolGroupingCache , IToolGroupingService } from '../../tools/common/virtualTools/virtualToolTypes' ;
97
105
98
106
/**
99
107
* A default context for VSCode extension testing, building on general one in `lib`.
@@ -106,7 +114,7 @@ export function createExtensionTestingServices(): TestingServiceCollection {
106
114
testingServiceCollection . define ( ISimulationTestContext , new SyncDescriptor ( NulSimulationTestContext ) ) ;
107
115
testingServiceCollection . define ( IRequestLogger , new SyncDescriptor ( NullRequestLogger ) ) ;
108
116
testingServiceCollection . define ( IFeedbackReporter , new SyncDescriptor ( NullFeedbackReporterImpl ) ) ;
109
- testingServiceCollection . define ( IEndpointProvider , new SyncDescriptor ( TestEndpointProvider , [ undefined , undefined , undefined , undefined , undefined , false ] ) ) ;
117
+ testingServiceCollection . define ( IEndpointProvider , new SyncDescriptor ( TestEndpointProvider , [ undefined , undefined , undefined , undefined , undefined , false , undefined ] ) ) ;
110
118
testingServiceCollection . define ( ICopilotTokenStore , new SyncDescriptor ( CopilotTokenStore ) ) ;
111
119
testingServiceCollection . define ( IDomainService , new SyncDescriptor ( DomainService ) ) ;
112
120
testingServiceCollection . define ( ICAPIClientService , new SyncDescriptor ( CAPIClientImpl ) ) ;
@@ -158,9 +166,13 @@ export function createExtensionTestingServices(): TestingServiceCollection {
158
166
testingServiceCollection . define ( IScopeSelector , new SyncDescriptor ( ScopeSelectorImpl ) ) ;
159
167
testingServiceCollection . define ( IPromptPathRepresentationService , new SyncDescriptor ( PromptPathRepresentationService ) ) ;
160
168
testingServiceCollection . define ( IToolsService , new SyncDescriptor ( NullToolsService ) ) ;
161
- testingServiceCollection . define ( IChatSessionService , new SyncDescriptor ( NullToolsService ) ) ;
169
+ testingServiceCollection . define ( IChatSessionService , new SyncDescriptor ( TestChatSessionService ) ) ;
162
170
testingServiceCollection . define ( INotebookService , new SyncDescriptor ( SimulationNotebookService ) ) ;
163
171
testingServiceCollection . define ( IThinkingDataService , new SyncDescriptor ( ThinkingDataImpl ) ) ;
172
+ testingServiceCollection . define ( IRunCommandExecutionService , new SyncDescriptor ( MockRunCommandExecutionService ) ) ;
173
+ testingServiceCollection . define ( ISearchService , new SyncDescriptor ( SearchServiceImpl ) ) ;
174
+ testingServiceCollection . define ( IToolGroupingCache , new SyncDescriptor ( ToolGroupingCache ) ) ;
175
+ testingServiceCollection . define ( IToolGroupingService , new SyncDescriptor ( ToolGroupingService ) ) ;
164
176
165
177
return testingServiceCollection ;
166
178
}
0 commit comments