@@ -614,7 +614,9 @@ export abstract class AbstractExtensionManagementService extends CommontExtensio
614614 }
615615
616616 private async getAllDepsAndPackExtensions ( extensionIdentifier : IExtensionIdentifier , manifest : IExtensionManifest , preferPreRelease : boolean , productVersion : IProductVersion , installed : ILocalExtension [ ] ) : Promise < { gallery : IGalleryExtension ; manifest : IExtensionManifest } [ ] > {
617+ this . logService . info ( '************ GET DEPS ' , extensionIdentifier . id ) ;
617618 if ( ! this . galleryService . isEnabled ( ) ) {
619+ this . logService . info ( '*** GET DEPS *** RETURN empty' , extensionIdentifier . id ) ;
618620 return [ ] ;
619621 }
620622
@@ -626,17 +628,29 @@ export abstract class AbstractExtensionManagementService extends CommontExtensio
626628 const dependecies : string [ ] = manifest . extensionDependencies || [ ] ;
627629 const dependenciesAndPackExtensions = [ ...dependecies ] ;
628630 if ( manifest . extensionPack ) {
631+ this . logService . info ( '*** GET DEPS *** manifest.extensionPack ' , manifest . extensionPack ) ;
629632 const existing = installed . find ( e => areSameExtensions ( e . identifier , extensionIdentifier ) ) ;
633+ this . logService . info ( '*** GET DEPS *** existing ' , existing ) ;
630634 for ( const extension of manifest . extensionPack ) {
635+ this . logService . info ( '*** GET DEPS *** FOR manifest.extensionPack ' , extension ) ;
631636 // add only those extensions which are new in currently installed extension
632637 if ( ! ( existing && existing . manifest . extensionPack && existing . manifest . extensionPack . some ( old => areSameExtensions ( { id : old } , { id : extension } ) ) ) ) {
638+ this . logService . info ( '*** GET DEPS *** NEW ' , extension ) ;
633639 if ( dependenciesAndPackExtensions . every ( e => ! areSameExtensions ( { id : e } , { id : extension } ) ) ) {
640+ this . logService . info ( '*** GET DEPS *** push(extension)' , extension ) ;
634641 dependenciesAndPackExtensions . push ( extension ) ;
642+ } else {
643+ this . logService . info ( '*** GET DEPS *** NOT push(extension)' , extension ) ;
635644 }
645+ } else {
646+ this . logService . info ( '*** GET DEPS *** NOT NEW ' , extension ) ;
636647 }
637648 }
649+ } else {
650+ this . logService . info ( '*** GET DEPS *** NO manifest.extensionPack' ) ;
638651 }
639652
653+ this . logService . info ( '*** GET DEPS *** dependenciesAndPackExtensions.length ' , dependenciesAndPackExtensions . length ) ;
640654 if ( dependenciesAndPackExtensions . length ) {
641655 // filter out known extensions
642656 const ids = dependenciesAndPackExtensions . filter ( id => knownIdentifiers . every ( galleryIdentifier => ! areSameExtensions ( galleryIdentifier , { id } ) ) ) ;
0 commit comments