Skip to content

Commit 1db7410

Browse files
committed
Default product icon preview doesn't work. Fixes microsoft#138201
1 parent b34ea77 commit 1db7410

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { ColorScheme } from 'vs/platform/theme/common/theme';
1818
import { colorThemeSchemaId } from 'vs/workbench/services/themes/common/colorThemeSchema';
1919
import { isPromiseCanceledError, onUnexpectedError } from 'vs/base/common/errors';
2020
import { IQuickInputButton, IQuickInputService, IQuickPickItem, QuickPickInput } from 'vs/platform/quickinput/common/quickInput';
21-
import { DEFAULT_PRODUCT_ICON_THEME_ID } from 'vs/workbench/services/themes/browser/productIconThemeData';
21+
import { DEFAULT_PRODUCT_ICON_THEME_ID, ProductIconThemeData } from 'vs/workbench/services/themes/browser/productIconThemeData';
2222
import { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/browser/panecomposite';
2323
import { ViewContainerLocation } from 'vs/workbench/common/views';
2424
import { ThrottledDelayer } from 'vs/base/common/async';
@@ -33,6 +33,7 @@ import { IExtensionResourceLoaderService } from 'vs/workbench/services/extension
3333
import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
3434
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry';
3535
import { CommandsRegistry } from 'vs/platform/commands/common/commands';
36+
import { FileIconThemeData } from 'vs/workbench/services/themes/browser/fileIconThemeData';
3637

3738
export const manageExtensionIcon = registerIcon('theme-selection-manage-extension', Codicon.gear, localize('manageExtensionIcon', 'Icon for the \'Manage\' action in the theme selection quick pick.'));
3839

@@ -409,7 +410,7 @@ registerAction2(class extends Action2 {
409410

410411
const picks: QuickPickInput<ThemeItem>[] = [
411412
{ type: 'separator', label: localize('fileIconThemeCategory', 'file icon themes') },
412-
{ id: '', label: localize('noIconThemeLabel', 'None'), description: localize('noIconThemeDesc', 'Disable File Icons') },
413+
{ id: '', theme: FileIconThemeData.noIconTheme, label: localize('noIconThemeLabel', 'None'), description: localize('noIconThemeDesc', 'Disable File Icons') },
413414
...toEntries(await themeService.getFileIconThemes()),
414415
];
415416

@@ -445,7 +446,7 @@ registerAction2(class extends Action2 {
445446

446447
const picks: QuickPickInput<ThemeItem>[] = [
447448
{ type: 'separator', label: localize('productIconThemeCategory', 'product icon themes') },
448-
{ id: DEFAULT_PRODUCT_ICON_THEME_ID, label: localize('defaultProductIconThemeLabel', 'Default') },
449+
{ id: DEFAULT_PRODUCT_ICON_THEME_ID, theme: ProductIconThemeData.defaultTheme, label: localize('defaultProductIconThemeLabel', 'Default') },
449450
...toEntries(await themeService.getProductIconThemes()),
450451
];
451452

0 commit comments

Comments
 (0)