@@ -190,7 +190,7 @@ suite('SearchModel', () => {
190
190
new TextSearchMatch ( 'preview 1' , new OneLineRange ( 1 , 1 , 4 ) ) ,
191
191
new TextSearchMatch ( 'preview 1' , new OneLineRange ( 1 , 4 , 11 ) ) ) ,
192
192
aRawMatch ( '/2' , new TextSearchMatch ( 'preview 2' , lineOneRange ) ) ] ;
193
- instantiationService . stub ( ISearchService , searchServiceWithResults ( results ) ) ;
193
+ instantiationService . stub ( ISearchService , searchServiceWithResults ( results , { limitHit : false , messages : [ ] , results } ) ) ;
194
194
instantiationService . stub ( INotebookSearchService , notebookSearchServiceWithInfo ( [ ] , undefined ) ) ;
195
195
196
196
const testObject : SearchModel = instantiationService . createInstance ( SearchModel ) ;
@@ -223,7 +223,7 @@ suite('SearchModel', () => {
223
223
new TextSearchMatch ( 'test' , new OneLineRange ( 1 , 1 , 5 ) ) ,
224
224
new TextSearchMatch ( 'this is a test' , new OneLineRange ( 1 , 11 , 15 ) ) ) ,
225
225
aRawMatch ( '/3' , new TextSearchMatch ( 'test' , lineOneRange ) ) ] ;
226
- const searchService = instantiationService . stub ( ISearchService , searchServiceWithResults ( results ) ) ;
226
+ const searchService = instantiationService . stub ( ISearchService , searchServiceWithResults ( results , { limitHit : false , messages : [ ] , results } ) ) ;
227
227
sinon . stub ( CellMatch . prototype , 'addContext' ) ;
228
228
229
229
const textSearch = sinon . spy ( searchService , 'textSearch' ) ;
@@ -347,7 +347,7 @@ suite('SearchModel', () => {
347
347
new TextSearchMatch ( 'preview 1' , new OneLineRange ( 1 , 4 , 11 ) ) ) ,
348
348
aRawMatch ( '/2' ,
349
349
new TextSearchMatch ( 'preview 2' , lineOneRange ) ) ] ;
350
- instantiationService . stub ( ISearchService , searchServiceWithResults ( results ) ) ;
350
+ instantiationService . stub ( ISearchService , searchServiceWithResults ( results , { limitHit : false , messages : [ ] , results } ) ) ;
351
351
instantiationService . stub ( INotebookSearchService , notebookSearchServiceWithInfo ( [ ] , undefined ) ) ;
352
352
353
353
const testObject : SearchModel = instantiationService . createInstance ( SearchModel ) ;
@@ -364,7 +364,7 @@ suite('SearchModel', () => {
364
364
const target1 = sinon . stub ( ) . returns ( nullEvent ) ;
365
365
instantiationService . stub ( ITelemetryService , 'publicLog' , target1 ) ;
366
366
367
- instantiationService . stub ( ISearchService , searchServiceWithResults ( [ ] ) ) ;
367
+ instantiationService . stub ( ISearchService , searchServiceWithResults ( [ ] , { limitHit : false , messages : [ ] , results : [ ] } ) ) ;
368
368
instantiationService . stub ( INotebookSearchService , notebookSearchServiceWithInfo ( [ ] , undefined ) ) ;
369
369
370
370
const testObject = instantiationService . createInstance ( SearchModel ) ;
@@ -453,7 +453,7 @@ suite('SearchModel', () => {
453
453
new TextSearchMatch ( 'preview 1' , new OneLineRange ( 1 , 4 , 11 ) ) ) ,
454
454
aRawMatch ( '/2' ,
455
455
new TextSearchMatch ( 'preview 2' , lineOneRange ) ) ] ;
456
- instantiationService . stub ( ISearchService , searchServiceWithResults ( results ) ) ;
456
+ instantiationService . stub ( ISearchService , searchServiceWithResults ( results , { limitHit : false , messages : [ ] , results : [ ] } ) ) ;
457
457
instantiationService . stub ( INotebookSearchService , notebookSearchServiceWithInfo ( [ ] , undefined ) ) ;
458
458
const testObject : SearchModel = instantiationService . createInstance ( SearchModel ) ;
459
459
await testObject . search ( { contentPattern : { pattern : 'somestring' } , type : QueryType . Text , folderQueries } ) ;
@@ -483,7 +483,7 @@ suite('SearchModel', () => {
483
483
aRawMatch ( '/1' ,
484
484
new TextSearchMatch ( 'preview 1' , new OneLineRange ( 1 , 1 , 4 ) ) ,
485
485
new TextSearchMatch ( 'preview 1' , new OneLineRange ( 1 , 4 , 11 ) ) ) ] ;
486
- instantiationService . stub ( ISearchService , searchServiceWithResults ( results ) ) ;
486
+ instantiationService . stub ( ISearchService , searchServiceWithResults ( results , { limitHit : false , messages : [ ] , results } ) ) ;
487
487
instantiationService . stub ( INotebookSearchService , notebookSearchServiceWithInfo ( [ ] , undefined ) ) ;
488
488
489
489
const testObject : SearchModel = instantiationService . createInstance ( SearchModel ) ;
0 commit comments