@@ -481,6 +481,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
481
481
if ( settingId !== this . currentColorTheme . settingsId ) {
482
482
await this . internalSetColorTheme ( theme . id , undefined ) ;
483
483
} else if ( theme !== this . currentColorTheme ) {
484
+ await theme . ensureLoaded ( this . extensionResourceLoaderService ) ;
484
485
theme . setCustomizations ( this . settings ) ;
485
486
await this . applyTheme ( theme , undefined , true ) ;
486
487
}
@@ -656,6 +657,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
656
657
if ( settingId !== this . currentFileIconTheme . settingsId ) {
657
658
await this . internalSetFileIconTheme ( theme . id , undefined ) ;
658
659
} else if ( theme !== this . currentFileIconTheme ) {
660
+ await theme . ensureLoaded ( this . extensionResourceLoaderService ) ;
659
661
this . applyAndSetFileIconTheme ( theme , true ) ;
660
662
}
661
663
return true ;
@@ -761,6 +763,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
761
763
if ( settingId !== this . currentProductIconTheme . settingsId ) {
762
764
await this . internalSetProductIconTheme ( theme . id , undefined ) ;
763
765
} else if ( theme !== this . currentProductIconTheme ) {
766
+ await theme . ensureLoaded ( this . extensionResourceLoaderService , this . logService ) ;
764
767
this . applyAndSetProductIconTheme ( theme , true ) ;
765
768
}
766
769
return true ;
0 commit comments