@@ -390,6 +390,7 @@ suite('ExtensionsActions', () => {
390
390
const gallery = aGalleryExtension ( 'a' , { identifier : local . identifier , version : '1.0.1' } ) ;
391
391
instantiationService . stubPromise ( IExtensionGalleryService , 'query' , aPage ( gallery ) ) ;
392
392
instantiationService . stubPromise ( IExtensionGalleryService , 'getCompatibleExtension' , gallery ) ;
393
+ instantiationService . stubPromise ( IExtensionGalleryService , 'getExtensions' , [ gallery ] ) ;
393
394
assert . ok ( ! testObject . enabled ) ;
394
395
return new Promise < void > ( c => {
395
396
testObject . onDidChange ( ( ) => {
@@ -413,6 +414,7 @@ suite('ExtensionsActions', () => {
413
414
const gallery = aGalleryExtension ( 'a' , { identifier : local . identifier , version : '1.0.1' } ) ;
414
415
instantiationService . stubPromise ( IExtensionGalleryService , 'query' , aPage ( gallery ) ) ;
415
416
instantiationService . stubPromise ( IExtensionGalleryService , 'getCompatibleExtension' , gallery ) ;
417
+ instantiationService . stubPromise ( IExtensionGalleryService , 'getExtensions' , [ gallery ] ) ;
416
418
await instantiationService . get ( IExtensionsWorkbenchService ) . queryGallery ( CancellationToken . None ) ;
417
419
const promise = Event . toPromise ( testObject . onDidChange ) ;
418
420
installEvent . fire ( { identifier : local . identifier , source : gallery } ) ;
0 commit comments