@@ -138,7 +138,14 @@ describe('RecommendationService', () => {
138138
139139 sendRequestStub . resolves ( mockFirstResult )
140140
141- await service . getAllRecommendations ( languageClient , mockDocument , mockPosition , mockContext , mockToken )
141+ await service . getAllRecommendations (
142+ languageClient ,
143+ mockDocument ,
144+ mockPosition ,
145+ mockContext ,
146+ mockToken ,
147+ true
148+ )
142149
143150 // Verify sendRequest was called with correct parameters
144151 assert ( sendRequestStub . calledOnce )
@@ -172,7 +179,14 @@ describe('RecommendationService', () => {
172179 sendRequestStub . onFirstCall ( ) . resolves ( mockFirstResult )
173180 sendRequestStub . onSecondCall ( ) . resolves ( mockSecondResult )
174181
175- await service . getAllRecommendations ( languageClient , mockDocument , mockPosition , mockContext , mockToken )
182+ await service . getAllRecommendations (
183+ languageClient ,
184+ mockDocument ,
185+ mockPosition ,
186+ mockContext ,
187+ mockToken ,
188+ true
189+ )
176190
177191 // Verify sendRequest was called with correct parameters
178192 assert ( sendRequestStub . calledTwice )
@@ -204,7 +218,14 @@ describe('RecommendationService', () => {
204218
205219 sendRequestStub . resolves ( mockFirstResult )
206220
207- await service . getAllRecommendations ( languageClient , mockDocument , mockPosition , mockContext , mockToken )
221+ await service . getAllRecommendations (
222+ languageClient ,
223+ mockDocument ,
224+ mockPosition ,
225+ mockContext ,
226+ mockToken ,
227+ true
228+ )
208229
209230 // Verify recordCompletionRequest was called
210231 // eslint-disable-next-line @typescript-eslint/unbound-method
@@ -232,10 +253,18 @@ describe('RecommendationService', () => {
232253 const { showGeneratingStub, hideGeneratingStub } = setupUITest ( )
233254
234255 // Call with showUi: false option
235- await service . getAllRecommendations ( languageClient , mockDocument , mockPosition , mockContext , mockToken , {
236- showUi : false ,
237- emitTelemetry : true ,
238- } )
256+ await service . getAllRecommendations (
257+ languageClient ,
258+ mockDocument ,
259+ mockPosition ,
260+ mockContext ,
261+ mockToken ,
262+ true ,
263+ {
264+ showUi : false ,
265+ emitTelemetry : true ,
266+ }
267+ )
239268
240269 // Verify UI methods were not called
241270 sinon . assert . notCalled ( showGeneratingStub )
@@ -248,7 +277,14 @@ describe('RecommendationService', () => {
248277 const { showGeneratingStub, hideGeneratingStub } = setupUITest ( )
249278
250279 // Call with default options (showUi: true)
251- await service . getAllRecommendations ( languageClient , mockDocument , mockPosition , mockContext , mockToken )
280+ await service . getAllRecommendations (
281+ languageClient ,
282+ mockDocument ,
283+ mockPosition ,
284+ mockContext ,
285+ mockToken ,
286+ true
287+ )
252288
253289 // Verify UI methods were called
254290 sinon . assert . calledOnce ( showGeneratingStub )
@@ -284,6 +320,7 @@ describe('RecommendationService', () => {
284320 mockPosition ,
285321 mockContext ,
286322 mockToken ,
323+ true ,
287324 options
288325 )
289326
0 commit comments