Skip to content

Commit 026aae2

Browse files
authored
open extensions view for Browse Themes in Marketplace action when extension gallery resources is not supported (microsoft#250279)
1 parent bc2758a commit 026aae2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/vs/workbench/contrib/themes/browser/themes.contribution.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,11 +771,18 @@ registerAction2(class extends Action2 {
771771
const themeService = accessor.get(IWorkbenchThemeService);
772772
const extensionGalleryService = accessor.get(IExtensionGalleryService);
773773
const extensionResourceLoaderService = accessor.get(IExtensionResourceLoaderService);
774+
const extensionsWorkbenchService = accessor.get(IExtensionsWorkbenchService);
774775
const instantiationService = accessor.get(IInstantiationService);
775776

776-
if (!extensionGalleryService.isEnabled() || !await extensionResourceLoaderService.supportsExtensionGalleryResources()) {
777+
if (!extensionGalleryService.isEnabled()) {
777778
return;
778779
}
780+
781+
if (!await extensionResourceLoaderService.supportsExtensionGalleryResources()) {
782+
await extensionsWorkbenchService.openSearch(marketplaceTag);
783+
return;
784+
}
785+
779786
const currentTheme = themeService.getColorTheme();
780787
const getMarketplaceColorThemes = (publisher: string, name: string, version: string) => themeService.getMarketplaceColorThemes(publisher, name, version);
781788

0 commit comments

Comments
 (0)