@codingame/monaco-vscode-theme-service-override 11.0.0 → 11.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +48 -48
- package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +2 -2
- package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +12 -12
- package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +13 -13
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +39 -39
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +36 -36
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +21 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-theme-service-override",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.0.
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "11.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.2",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "11.0.2"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -57,7 +57,7 @@ import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
|
57
57
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
58
58
|
|
|
59
59
|
var DefaultThemeUpdatedNotificationContribution_1;
|
|
60
|
-
const manageExtensionIcon = registerIcon('theme-selection-manage-extension', Codicon.gear, ( localize(
|
|
60
|
+
const manageExtensionIcon = registerIcon('theme-selection-manage-extension', Codicon.gear, ( localize(3023, 'Icon for the \'Manage\' action in the theme selection quick pick.')));
|
|
61
61
|
var ConfigureItem;
|
|
62
62
|
( ((function(ConfigureItem) {
|
|
63
63
|
ConfigureItem["BROWSE_GALLERY"] = "marketplace";
|
|
@@ -165,7 +165,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
|
|
|
165
165
|
quickpick.matchOnDescription = true;
|
|
166
166
|
quickpick.buttons = [this.quickInputService.backButton];
|
|
167
167
|
quickpick.title = 'Marketplace Themes';
|
|
168
|
-
quickpick.placeholder = ( localize(
|
|
168
|
+
quickpick.placeholder = ( localize(3024, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
|
|
169
169
|
quickpick.canSelectMany = false;
|
|
170
170
|
disposables.add(quickpick.onDidChangeValue(() => this.trigger(quickpick.value)));
|
|
171
171
|
disposables.add(quickpick.onDidAccept(async (_) => {
|
|
@@ -217,7 +217,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
|
|
|
217
217
|
items = items.concat({ label: '$(loading~spin) Searching for themes...', id: undefined, alwaysShow: true });
|
|
218
218
|
}
|
|
219
219
|
else if (items.length === 0 && this._searchError) {
|
|
220
|
-
items = [{ label: `$(error) ${( localize(
|
|
220
|
+
items = [{ label: `$(error) ${( localize(3025, 'Error while searching for themes: {0}', this._searchError))}`, id: undefined, alwaysShow: true }];
|
|
221
221
|
}
|
|
222
222
|
const activeItemId = quickpick.activeItems[0]?.id;
|
|
223
223
|
const newActiveItem = activeItemId ? items.find(i => isItem(i) && i.id === activeItemId) : undefined;
|
|
@@ -236,12 +236,12 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
|
|
|
236
236
|
this.extensionsWorkbenchService.openSearch(`@id:${galleryExtension.identifier.id}`);
|
|
237
237
|
const result = await this.dialogService.confirm({
|
|
238
238
|
message: ( localize(
|
|
239
|
-
|
|
239
|
+
3026,
|
|
240
240
|
"This will install extension '{0}' published by '{1}'. Do you want to continue?",
|
|
241
241
|
galleryExtension.displayName,
|
|
242
242
|
galleryExtension.publisherDisplayName
|
|
243
243
|
)),
|
|
244
|
-
primaryButton: ( localize(
|
|
244
|
+
primaryButton: ( localize(3027, "OK"))
|
|
245
245
|
});
|
|
246
246
|
if (!result.confirmed) {
|
|
247
247
|
return false;
|
|
@@ -249,7 +249,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
|
|
|
249
249
|
try {
|
|
250
250
|
await this.progressService.withProgress({
|
|
251
251
|
location: 15 ,
|
|
252
|
-
title: ( localize(
|
|
252
|
+
title: ( localize(3028, "Installing Extension {0}...", galleryExtension.displayName))
|
|
253
253
|
}, async () => {
|
|
254
254
|
await this.extensionManagementService.installFromGallery(galleryExtension, {
|
|
255
255
|
isMachineScoped: false,
|
|
@@ -396,7 +396,7 @@ registerAction2(class extends Action2 {
|
|
|
396
396
|
constructor() {
|
|
397
397
|
super({
|
|
398
398
|
id: SelectColorThemeCommandId,
|
|
399
|
-
title: ( localize2(
|
|
399
|
+
title: ( localize2(3029, 'Color Theme')),
|
|
400
400
|
category: Categories.Preferences,
|
|
401
401
|
f1: true,
|
|
402
402
|
keybinding: {
|
|
@@ -407,12 +407,12 @@ registerAction2(class extends Action2 {
|
|
|
407
407
|
}
|
|
408
408
|
getTitle(colorScheme) {
|
|
409
409
|
switch (colorScheme) {
|
|
410
|
-
case ColorScheme.DARK: return ( localize(
|
|
411
|
-
case ColorScheme.LIGHT: return ( localize(
|
|
412
|
-
case ColorScheme.HIGH_CONTRAST_DARK: return ( localize(
|
|
413
|
-
case ColorScheme.HIGH_CONTRAST_LIGHT: return ( localize(
|
|
410
|
+
case ColorScheme.DARK: return ( localize(3030, "Select Color Theme for System Dark Mode"));
|
|
411
|
+
case ColorScheme.LIGHT: return ( localize(3031, "Select Color Theme for System Light Mode"));
|
|
412
|
+
case ColorScheme.HIGH_CONTRAST_DARK: return ( localize(3032, "Select Color Theme for High Contrast Dark Mode"));
|
|
413
|
+
case ColorScheme.HIGH_CONTRAST_LIGHT: return ( localize(3033, "Select Color Theme for High Contrast Light Mode"));
|
|
414
414
|
default:
|
|
415
|
-
return ( localize(
|
|
415
|
+
return ( localize(3034, "Select Color Theme (detect system color mode disabled)"));
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
async run(accessor) {
|
|
@@ -422,7 +422,7 @@ registerAction2(class extends Action2 {
|
|
|
422
422
|
let modeConfigureToggle;
|
|
423
423
|
if (preferredColorScheme) {
|
|
424
424
|
modeConfigureToggle = ( (new Toggle({
|
|
425
|
-
title: ( localize(
|
|
425
|
+
title: ( localize(3035, 'Detect system color mode enabled. Click to configure.')),
|
|
426
426
|
icon: Codicon.colorMode,
|
|
427
427
|
isChecked: false,
|
|
428
428
|
...defaultToggleStyles
|
|
@@ -430,15 +430,15 @@ registerAction2(class extends Action2 {
|
|
|
430
430
|
}
|
|
431
431
|
else {
|
|
432
432
|
modeConfigureToggle = ( (new Toggle({
|
|
433
|
-
title: ( localize(
|
|
433
|
+
title: ( localize(3036, 'Detect system color mode disabled. Click to configure.')),
|
|
434
434
|
icon: Codicon.colorMode,
|
|
435
435
|
isChecked: false,
|
|
436
436
|
...defaultToggleStyles
|
|
437
437
|
})));
|
|
438
438
|
}
|
|
439
439
|
const options = {
|
|
440
|
-
installMessage: ( localize(
|
|
441
|
-
browseMessage: '$(plus) ' + ( localize(
|
|
440
|
+
installMessage: ( localize(3037, "Install Additional Color Themes...")),
|
|
441
|
+
browseMessage: '$(plus) ' + ( localize(3038, "Browse Additional Color Themes...")),
|
|
442
442
|
placeholderMessage: this.getTitle(preferredColorScheme),
|
|
443
443
|
marketplaceTag: 'category:themes',
|
|
444
444
|
toggles: [modeConfigureToggle],
|
|
@@ -453,9 +453,9 @@ registerAction2(class extends Action2 {
|
|
|
453
453
|
const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
|
|
454
454
|
const themes = await themeService.getColorThemes();
|
|
455
455
|
const currentTheme = themeService.getColorTheme();
|
|
456
|
-
const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(
|
|
457
|
-
const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(
|
|
458
|
-
const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(
|
|
456
|
+
const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(3039, "light themes")));
|
|
457
|
+
const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(3040, "dark themes")));
|
|
458
|
+
const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(3041, "high contrast themes")));
|
|
459
459
|
let picks;
|
|
460
460
|
switch (preferredColorScheme) {
|
|
461
461
|
case ColorScheme.DARK:
|
|
@@ -478,7 +478,7 @@ registerAction2(class extends Action2 {
|
|
|
478
478
|
constructor() {
|
|
479
479
|
super({
|
|
480
480
|
id: SelectFileIconThemeCommandId,
|
|
481
|
-
title: ( localize2(
|
|
481
|
+
title: ( localize2(3042, 'File Icon Theme')),
|
|
482
482
|
category: Categories.Preferences,
|
|
483
483
|
f1: true
|
|
484
484
|
});
|
|
@@ -486,8 +486,8 @@ registerAction2(class extends Action2 {
|
|
|
486
486
|
async run(accessor) {
|
|
487
487
|
const themeService = accessor.get(IWorkbenchThemeService);
|
|
488
488
|
const options = {
|
|
489
|
-
installMessage: ( localize(
|
|
490
|
-
placeholderMessage: ( localize(
|
|
489
|
+
installMessage: ( localize(3043, "Install Additional File Icon Themes...")),
|
|
490
|
+
placeholderMessage: ( localize(3044, "Select File Icon Theme (Up/Down Keys to Preview)")),
|
|
491
491
|
marketplaceTag: 'tag:icon-theme'
|
|
492
492
|
};
|
|
493
493
|
const setTheme = (theme, settingsTarget) => themeService.setFileIconTheme(theme, settingsTarget);
|
|
@@ -495,8 +495,8 @@ registerAction2(class extends Action2 {
|
|
|
495
495
|
const instantiationService = accessor.get(IInstantiationService);
|
|
496
496
|
const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
|
|
497
497
|
const picks = [
|
|
498
|
-
{ type: 'separator', label: ( localize(
|
|
499
|
-
{ id: '', theme: FileIconThemeData.noIconTheme, label: ( localize(
|
|
498
|
+
{ type: 'separator', label: ( localize(3045, 'file icon themes')) },
|
|
499
|
+
{ id: '', theme: FileIconThemeData.noIconTheme, label: ( localize(3046, 'None')), description: ( localize(3047, 'Disable File Icons')) },
|
|
500
500
|
...toEntries(await themeService.getFileIconThemes()),
|
|
501
501
|
];
|
|
502
502
|
await picker.openQuickPick(picks, themeService.getFileIconTheme());
|
|
@@ -507,7 +507,7 @@ registerAction2(class extends Action2 {
|
|
|
507
507
|
constructor() {
|
|
508
508
|
super({
|
|
509
509
|
id: SelectProductIconThemeCommandId,
|
|
510
|
-
title: ( localize2(
|
|
510
|
+
title: ( localize2(3048, 'Product Icon Theme')),
|
|
511
511
|
category: Categories.Preferences,
|
|
512
512
|
f1: true
|
|
513
513
|
});
|
|
@@ -515,9 +515,9 @@ registerAction2(class extends Action2 {
|
|
|
515
515
|
async run(accessor) {
|
|
516
516
|
const themeService = accessor.get(IWorkbenchThemeService);
|
|
517
517
|
const options = {
|
|
518
|
-
installMessage: ( localize(
|
|
519
|
-
browseMessage: '$(plus) ' + ( localize(
|
|
520
|
-
placeholderMessage: ( localize(
|
|
518
|
+
installMessage: ( localize(3049, "Install Additional Product Icon Themes...")),
|
|
519
|
+
browseMessage: '$(plus) ' + ( localize(3050, "Browse Additional Product Icon Themes...")),
|
|
520
|
+
placeholderMessage: ( localize(3051, "Select Product Icon Theme (Up/Down Keys to Preview)")),
|
|
521
521
|
marketplaceTag: 'tag:product-icon-theme'
|
|
522
522
|
};
|
|
523
523
|
const setTheme = (theme, settingsTarget) => themeService.setProductIconTheme(theme, settingsTarget);
|
|
@@ -525,8 +525,8 @@ registerAction2(class extends Action2 {
|
|
|
525
525
|
const instantiationService = accessor.get(IInstantiationService);
|
|
526
526
|
const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
|
|
527
527
|
const picks = [
|
|
528
|
-
{ type: 'separator', label: ( localize(
|
|
529
|
-
{ id: DEFAULT_PRODUCT_ICON_THEME_ID, theme: ProductIconThemeData.defaultTheme, label: ( localize(
|
|
528
|
+
{ type: 'separator', label: ( localize(3052, 'product icon themes')) },
|
|
529
|
+
{ id: DEFAULT_PRODUCT_ICON_THEME_ID, theme: ProductIconThemeData.defaultTheme, label: ( localize(3053, 'Default')) },
|
|
530
530
|
...toEntries(await themeService.getProductIconThemes()),
|
|
531
531
|
];
|
|
532
532
|
await picker.openQuickPick(picks, themeService.getProductIconTheme());
|
|
@@ -584,13 +584,13 @@ function toEntries(themes, label) {
|
|
|
584
584
|
}
|
|
585
585
|
const configureButton = {
|
|
586
586
|
iconClass: ThemeIcon.asClassName(manageExtensionIcon),
|
|
587
|
-
tooltip: ( localize(
|
|
587
|
+
tooltip: ( localize(3054, "Manage Extension")),
|
|
588
588
|
};
|
|
589
589
|
registerAction2(class extends Action2 {
|
|
590
590
|
constructor() {
|
|
591
591
|
super({
|
|
592
592
|
id: 'workbench.action.generateColorTheme',
|
|
593
|
-
title: ( localize2(
|
|
593
|
+
title: ( localize2(3055, 'Generate Color Theme From Current Settings')),
|
|
594
594
|
category: Categories.Developer,
|
|
595
595
|
f1: true
|
|
596
596
|
});
|
|
@@ -640,7 +640,7 @@ registerAction2(class extends Action2 {
|
|
|
640
640
|
constructor() {
|
|
641
641
|
super({
|
|
642
642
|
id: toggleLightDarkThemesCommandId,
|
|
643
|
-
title: ( localize2(
|
|
643
|
+
title: ( localize2(3056, 'Toggle between Light/Dark Themes')),
|
|
644
644
|
category: Categories.Preferences,
|
|
645
645
|
f1: true,
|
|
646
646
|
});
|
|
@@ -652,13 +652,13 @@ registerAction2(class extends Action2 {
|
|
|
652
652
|
const preferencesService = accessor.get(IPreferencesService);
|
|
653
653
|
if (configurationService.getValue(ThemeSettings.DETECT_COLOR_SCHEME)) {
|
|
654
654
|
const message = ( localize(
|
|
655
|
-
|
|
655
|
+
3057,
|
|
656
656
|
"Cannot toggle between light and dark themes when `{0}` is enabled in settings.",
|
|
657
657
|
ThemeSettings.DETECT_COLOR_SCHEME
|
|
658
658
|
));
|
|
659
659
|
notificationService.prompt(Severity$1.Info, message, [
|
|
660
660
|
{
|
|
661
|
-
label: ( localize(
|
|
661
|
+
label: ( localize(3058, "Open Settings")),
|
|
662
662
|
run: () => {
|
|
663
663
|
return preferencesService.openUserSettings({ query: ThemeSettings.DETECT_COLOR_SCHEME });
|
|
664
664
|
}
|
|
@@ -696,7 +696,7 @@ registerAction2(class extends Action2 {
|
|
|
696
696
|
constructor() {
|
|
697
697
|
super({
|
|
698
698
|
id: browseColorThemesInMarketplaceCommandId,
|
|
699
|
-
title: ( localize2(
|
|
699
|
+
title: ( localize2(3059, 'Browse Color Themes in Marketplace')),
|
|
700
700
|
category: Categories.Preferences,
|
|
701
701
|
f1: true,
|
|
702
702
|
});
|
|
@@ -732,13 +732,13 @@ registerAction2(class extends Action2 {
|
|
|
732
732
|
});
|
|
733
733
|
const ThemesSubMenu = ( (new MenuId('ThemesSubMenu')));
|
|
734
734
|
MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
735
|
-
title: ( localize(
|
|
735
|
+
title: ( localize(3060, "Themes")),
|
|
736
736
|
submenu: ThemesSubMenu,
|
|
737
737
|
group: '2_configuration',
|
|
738
738
|
order: 7
|
|
739
739
|
});
|
|
740
740
|
MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
|
|
741
|
-
title: ( localize(
|
|
741
|
+
title: ( localize(3061, "&&Theme")),
|
|
742
742
|
submenu: ThemesSubMenu,
|
|
743
743
|
group: '2_configuration',
|
|
744
744
|
order: 7
|
|
@@ -746,21 +746,21 @@ MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
|
|
|
746
746
|
MenuRegistry.appendMenuItem(ThemesSubMenu, {
|
|
747
747
|
command: {
|
|
748
748
|
id: SelectColorThemeCommandId,
|
|
749
|
-
title: ( localize(
|
|
749
|
+
title: ( localize(3029, 'Color Theme'))
|
|
750
750
|
},
|
|
751
751
|
order: 1
|
|
752
752
|
});
|
|
753
753
|
MenuRegistry.appendMenuItem(ThemesSubMenu, {
|
|
754
754
|
command: {
|
|
755
755
|
id: SelectFileIconThemeCommandId,
|
|
756
|
-
title: ( localize(
|
|
756
|
+
title: ( localize(3062, "File Icon Theme"))
|
|
757
757
|
},
|
|
758
758
|
order: 2
|
|
759
759
|
});
|
|
760
760
|
MenuRegistry.appendMenuItem(ThemesSubMenu, {
|
|
761
761
|
command: {
|
|
762
762
|
id: SelectProductIconThemeCommandId,
|
|
763
|
-
title: ( localize(
|
|
763
|
+
title: ( localize(3063, "Product Icon Theme"))
|
|
764
764
|
},
|
|
765
765
|
order: 3
|
|
766
766
|
});
|
|
@@ -802,20 +802,20 @@ let DefaultThemeUpdatedNotificationContribution = class DefaultThemeUpdatedNotif
|
|
|
802
802
|
if (newTheme) {
|
|
803
803
|
const choices = [
|
|
804
804
|
{
|
|
805
|
-
label: ( localize(
|
|
805
|
+
label: ( localize(3064, "Keep New Theme")),
|
|
806
806
|
run: () => {
|
|
807
807
|
this._writeTelemetry('keepNew');
|
|
808
808
|
}
|
|
809
809
|
},
|
|
810
810
|
{
|
|
811
|
-
label: ( localize(
|
|
811
|
+
label: ( localize(3065, "Browse Themes")),
|
|
812
812
|
run: () => {
|
|
813
813
|
this._writeTelemetry('browse');
|
|
814
814
|
this._commandService.executeCommand(SelectColorThemeCommandId);
|
|
815
815
|
}
|
|
816
816
|
},
|
|
817
817
|
{
|
|
818
|
-
label: ( localize(
|
|
818
|
+
label: ( localize(3066, "Revert")),
|
|
819
819
|
run: async () => {
|
|
820
820
|
this._writeTelemetry('keepOld');
|
|
821
821
|
const oldSettingsId = usingLight ? ThemeSettingDefaults.COLOR_THEME_LIGHT_OLD : ThemeSettingDefaults.COLOR_THEME_DARK_OLD;
|
|
@@ -827,7 +827,7 @@ let DefaultThemeUpdatedNotificationContribution = class DefaultThemeUpdatedNotif
|
|
|
827
827
|
}
|
|
828
828
|
];
|
|
829
829
|
await this._notificationService.prompt(Severity$1.Info, ( localize(
|
|
830
|
-
|
|
830
|
+
3067,
|
|
831
831
|
"Visual Studio Code now ships with a new default theme '{0}'. If you prefer, you can switch back to the old theme or try one of the many other color themes available.",
|
|
832
832
|
newTheme.label
|
|
833
833
|
)), choices, {
|
|
@@ -840,20 +840,20 @@ let DefaultThemeUpdatedNotificationContribution = class DefaultThemeUpdatedNotif
|
|
|
840
840
|
const theme = (await this._workbenchThemeService.getColorThemes()).find(theme => theme.settingsId === newThemeSettingsId);
|
|
841
841
|
if (theme) {
|
|
842
842
|
const choices = [{
|
|
843
|
-
label: ( localize(
|
|
843
|
+
label: ( localize(3068, "Try New Theme")),
|
|
844
844
|
run: () => {
|
|
845
845
|
this._writeTelemetry('tryNew');
|
|
846
846
|
this._workbenchThemeService.setColorTheme(theme, 'auto');
|
|
847
847
|
}
|
|
848
848
|
},
|
|
849
849
|
{
|
|
850
|
-
label: ( localize(
|
|
850
|
+
label: ( localize(3069, "Cancel")),
|
|
851
851
|
run: () => {
|
|
852
852
|
this._writeTelemetry('cancel');
|
|
853
853
|
}
|
|
854
854
|
}];
|
|
855
855
|
await this._notificationService.prompt(Severity$1.Info, ( localize(
|
|
856
|
-
|
|
856
|
+
3070,
|
|
857
857
|
"Visual Studio Code now ships with a new default theme '{0}'. Do you want to give it a try?",
|
|
858
858
|
theme.label
|
|
859
859
|
)), choices, { onCancel: () => this._writeTelemetry('cancel') });
|
|
@@ -138,13 +138,13 @@ class FileIconThemeLoader {
|
|
|
138
138
|
const contentValue = parse(content, errors);
|
|
139
139
|
if (errors.length > 0) {
|
|
140
140
|
return Promise.reject(( (new Error(( localize(
|
|
141
|
-
|
|
141
|
+
6891,
|
|
142
142
|
"Problems parsing file icons file: {0}",
|
|
143
143
|
( (errors.map(e => getParseErrorMessage(e.error)))).join(', ')
|
|
144
144
|
))))));
|
|
145
145
|
}
|
|
146
146
|
else if (getNodeType(contentValue) !== 'object') {
|
|
147
|
-
return Promise.reject(( (new Error(( localize(
|
|
147
|
+
return Promise.reject(( (new Error(( localize(6892, "Invalid format for file icons theme file: Object expected."))))));
|
|
148
148
|
}
|
|
149
149
|
return Promise.resolve(contentValue);
|
|
150
150
|
});
|
|
@@ -38,7 +38,7 @@ class ProductIconThemeData {
|
|
|
38
38
|
this.isLoaded = true;
|
|
39
39
|
if (warnings.length) {
|
|
40
40
|
logService.error(( localize(
|
|
41
|
-
|
|
41
|
+
6959,
|
|
42
42
|
"Problems processing product icons definitions in {0}:\n{1}",
|
|
43
43
|
(location.toString()),
|
|
44
44
|
warnings.join('\n')
|
|
@@ -69,7 +69,7 @@ class ProductIconThemeData {
|
|
|
69
69
|
static get defaultTheme() {
|
|
70
70
|
let themeData = ProductIconThemeData._defaultProductIconTheme;
|
|
71
71
|
if (!themeData) {
|
|
72
|
-
themeData = ProductIconThemeData._defaultProductIconTheme = ( (new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(
|
|
72
|
+
themeData = ProductIconThemeData._defaultProductIconTheme = ( (new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(6960, 'Default')), ThemeSettingDefaults.PRODUCT_ICON_THEME)));
|
|
73
73
|
themeData.isLoaded = true;
|
|
74
74
|
themeData.extensionData = undefined;
|
|
75
75
|
themeData.watch = false;
|
|
@@ -156,17 +156,17 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
156
156
|
const contentValue = parse(content, parseErrors);
|
|
157
157
|
if (parseErrors.length > 0) {
|
|
158
158
|
return Promise.reject(( (new Error(( localize(
|
|
159
|
-
|
|
159
|
+
6961,
|
|
160
160
|
"Problems parsing product icons file: {0}",
|
|
161
161
|
( (parseErrors.map(e => getParseErrorMessage(e.error)))).join(', ')
|
|
162
162
|
))))));
|
|
163
163
|
}
|
|
164
164
|
else if (getNodeType(contentValue) !== 'object') {
|
|
165
|
-
return Promise.reject(( (new Error(( localize(
|
|
165
|
+
return Promise.reject(( (new Error(( localize(6962, "Invalid format for product icons theme file: Object expected."))))));
|
|
166
166
|
}
|
|
167
167
|
else if (!contentValue.iconDefinitions || !Array.isArray(contentValue.fonts) || !contentValue.fonts.length) {
|
|
168
168
|
return Promise.reject(( (new Error(( localize(
|
|
169
|
-
|
|
169
|
+
6963,
|
|
170
170
|
"Invalid format for product icons theme file: Must contain iconDefinitions and fonts."
|
|
171
171
|
))))));
|
|
172
172
|
}
|
|
@@ -180,14 +180,14 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
180
180
|
fontWeight = font.weight;
|
|
181
181
|
}
|
|
182
182
|
else {
|
|
183
|
-
warnings.push(( localize(
|
|
183
|
+
warnings.push(( localize(6964, 'Invalid font weight in font \'{0}\'. Ignoring setting.', font.id)));
|
|
184
184
|
}
|
|
185
185
|
let fontStyle = undefined;
|
|
186
186
|
if (isString(font.style) && font.style.match(fontStyleRegex)) {
|
|
187
187
|
fontStyle = font.style;
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
190
|
-
warnings.push(( localize(
|
|
190
|
+
warnings.push(( localize(6965, 'Invalid font style in font \'{0}\'. Ignoring setting.', font.id)));
|
|
191
191
|
}
|
|
192
192
|
const sanitizedSrc = [];
|
|
193
193
|
if (Array.isArray(font.src)) {
|
|
@@ -197,7 +197,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
197
197
|
sanitizedSrc.push({ location: iconFontLocation, format: s.format });
|
|
198
198
|
}
|
|
199
199
|
else {
|
|
200
|
-
warnings.push(( localize(
|
|
200
|
+
warnings.push(( localize(6966, 'Invalid font source in font \'{0}\'. Ignoring source.', font.id)));
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -206,7 +206,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
206
206
|
}
|
|
207
207
|
else {
|
|
208
208
|
warnings.push(( localize(
|
|
209
|
-
|
|
209
|
+
6967,
|
|
210
210
|
'No valid font source in font \'{0}\'. Ignoring font definition.',
|
|
211
211
|
font.id
|
|
212
212
|
)));
|
|
@@ -214,7 +214,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
214
214
|
}
|
|
215
215
|
else {
|
|
216
216
|
warnings.push(( localize(
|
|
217
|
-
|
|
217
|
+
6968,
|
|
218
218
|
'Missing or invalid font id \'{0}\'. Skipping font definition.',
|
|
219
219
|
font.id
|
|
220
220
|
)));
|
|
@@ -232,11 +232,11 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
232
232
|
iconDefinitions.set(iconId, { fontCharacter: definition.fontCharacter, font });
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
235
|
-
warnings.push(( localize(
|
|
235
|
+
warnings.push(( localize(6969, 'Skipping icon definition \'{0}\'. Unknown font.', iconId)));
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
else {
|
|
239
|
-
warnings.push(( localize(
|
|
239
|
+
warnings.push(( localize(6970, 'Skipping icon definition \'{0}\'. Unknown fontCharacter.', iconId)));
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
return { iconDefinitions };
|
|
@@ -135,31 +135,31 @@ const textmateColorSchema = {
|
|
|
135
135
|
},
|
|
136
136
|
settings: {
|
|
137
137
|
type: 'object',
|
|
138
|
-
description: ( localize(
|
|
138
|
+
description: ( localize(6893, 'Colors and styles for the token.')),
|
|
139
139
|
properties: {
|
|
140
140
|
foreground: {
|
|
141
141
|
type: 'string',
|
|
142
|
-
description: ( localize(
|
|
142
|
+
description: ( localize(6894, 'Foreground color for the token.')),
|
|
143
143
|
format: 'color-hex',
|
|
144
144
|
default: '#ff0000'
|
|
145
145
|
},
|
|
146
146
|
background: {
|
|
147
147
|
type: 'string',
|
|
148
|
-
deprecationMessage: ( localize(
|
|
148
|
+
deprecationMessage: ( localize(6895, 'Token background colors are currently not supported.'))
|
|
149
149
|
},
|
|
150
150
|
fontStyle: {
|
|
151
151
|
type: 'string',
|
|
152
152
|
description: ( localize(
|
|
153
|
-
|
|
153
|
+
6896,
|
|
154
154
|
'Font style of the rule: \'italic\', \'bold\', \'underline\', \'strikethrough\' or a combination. The empty string unsets inherited settings.'
|
|
155
155
|
)),
|
|
156
156
|
pattern: '^(\\s*\\b(italic|bold|underline|strikethrough))*\\s*$',
|
|
157
157
|
patternErrorMessage: ( localize(
|
|
158
|
-
|
|
158
|
+
6897,
|
|
159
159
|
'Font style must be \'italic\', \'bold\', \'underline\', \'strikethrough\' or a combination or the empty string.'
|
|
160
160
|
)),
|
|
161
161
|
defaultSnippets: [
|
|
162
|
-
{ label: ( localize(
|
|
162
|
+
{ label: ( localize(6898, 'None (clear inherited style)')), bodyText: '""' },
|
|
163
163
|
{ body: 'italic' },
|
|
164
164
|
{ body: 'bold' },
|
|
165
165
|
{ body: 'underline' },
|
|
@@ -188,10 +188,10 @@ const textmateColorSchema = {
|
|
|
188
188
|
properties: {
|
|
189
189
|
name: {
|
|
190
190
|
type: 'string',
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(6899, 'Description of the rule.'))
|
|
192
192
|
},
|
|
193
193
|
scope: {
|
|
194
|
-
description: ( localize(
|
|
194
|
+
description: ( localize(6900, 'Scope selector against which this rule matches.')),
|
|
195
195
|
anyOf: [
|
|
196
196
|
{
|
|
197
197
|
enum: textMateScopes
|
|
@@ -230,28 +230,28 @@ const colorThemeSchema = {
|
|
|
230
230
|
allowTrailingCommas: true,
|
|
231
231
|
properties: {
|
|
232
232
|
colors: {
|
|
233
|
-
description: ( localize(
|
|
233
|
+
description: ( localize(6901, 'Colors in the workbench')),
|
|
234
234
|
$ref: workbenchColorsSchemaId,
|
|
235
235
|
additionalProperties: false
|
|
236
236
|
},
|
|
237
237
|
tokenColors: {
|
|
238
238
|
anyOf: [{
|
|
239
239
|
type: 'string',
|
|
240
|
-
description: ( localize(
|
|
240
|
+
description: ( localize(6902, 'Path to a tmTheme file (relative to the current file).'))
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
|
-
description: ( localize(
|
|
243
|
+
description: ( localize(6903, 'Colors for syntax highlighting')),
|
|
244
244
|
$ref: textmateColorsSchemaId
|
|
245
245
|
}
|
|
246
246
|
]
|
|
247
247
|
},
|
|
248
248
|
semanticHighlighting: {
|
|
249
249
|
type: 'boolean',
|
|
250
|
-
description: ( localize(
|
|
250
|
+
description: ( localize(6904, 'Whether semantic highlighting should be enabled for this theme.'))
|
|
251
251
|
},
|
|
252
252
|
semanticTokenColors: {
|
|
253
253
|
type: 'object',
|
|
254
|
-
description: ( localize(
|
|
254
|
+
description: ( localize(6905, 'Colors for semantic tokens')),
|
|
255
255
|
$ref: tokenStylingSchemaId
|
|
256
256
|
}
|
|
257
257
|
}
|
|
@@ -12,113 +12,113 @@ const schema = {
|
|
|
12
12
|
folderExpanded: {
|
|
13
13
|
type: 'string',
|
|
14
14
|
description: ( localize(
|
|
15
|
-
|
|
15
|
+
6853,
|
|
16
16
|
'The folder icon for expanded folders. The expanded folder icon is optional. If not set, the icon defined for folder will be shown.'
|
|
17
17
|
))
|
|
18
18
|
},
|
|
19
19
|
folder: {
|
|
20
20
|
type: 'string',
|
|
21
21
|
description: ( localize(
|
|
22
|
-
|
|
22
|
+
6854,
|
|
23
23
|
'The folder icon for collapsed folders, and if folderExpanded is not set, also for expanded folders.'
|
|
24
24
|
))
|
|
25
25
|
},
|
|
26
26
|
file: {
|
|
27
27
|
type: 'string',
|
|
28
28
|
description: ( localize(
|
|
29
|
-
|
|
29
|
+
6855,
|
|
30
30
|
'The default file icon, shown for all files that don\'t match any extension, filename or language id.'
|
|
31
31
|
))
|
|
32
32
|
},
|
|
33
33
|
rootFolder: {
|
|
34
34
|
type: 'string',
|
|
35
35
|
description: ( localize(
|
|
36
|
-
|
|
36
|
+
6856,
|
|
37
37
|
'The folder icon for collapsed root folders, and if rootFolderExpanded is not set, also for expanded root folders.'
|
|
38
38
|
))
|
|
39
39
|
},
|
|
40
40
|
rootFolderExpanded: {
|
|
41
41
|
type: 'string',
|
|
42
42
|
description: ( localize(
|
|
43
|
-
|
|
43
|
+
6857,
|
|
44
44
|
'The folder icon for expanded root folders. The expanded root folder icon is optional. If not set, the icon defined for root folder will be shown.'
|
|
45
45
|
))
|
|
46
46
|
},
|
|
47
47
|
rootFolderNames: {
|
|
48
48
|
type: 'object',
|
|
49
49
|
description: ( localize(
|
|
50
|
-
|
|
50
|
+
6858,
|
|
51
51
|
'Associates root folder names to icons. The object key is the root folder name. No patterns or wildcards are allowed. Root folder name matching is case insensitive.'
|
|
52
52
|
)),
|
|
53
53
|
additionalProperties: {
|
|
54
54
|
type: 'string',
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(6859, 'The ID of the icon definition for the association.'))
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
rootFolderNamesExpanded: {
|
|
59
59
|
type: 'object',
|
|
60
60
|
description: ( localize(
|
|
61
|
-
|
|
61
|
+
6860,
|
|
62
62
|
'Associates root folder names to icons for expanded root folders. The object key is the root folder name. No patterns or wildcards are allowed. Root folder name matching is case insensitive.'
|
|
63
63
|
)),
|
|
64
64
|
additionalProperties: {
|
|
65
65
|
type: 'string',
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(6861, 'The ID of the icon definition for the association.'))
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
folderNames: {
|
|
70
70
|
type: 'object',
|
|
71
71
|
description: ( localize(
|
|
72
|
-
|
|
72
|
+
6862,
|
|
73
73
|
'Associates folder names to icons. The object key is the folder name, not including any path segments. No patterns or wildcards are allowed. Folder name matching is case insensitive.'
|
|
74
74
|
)),
|
|
75
75
|
additionalProperties: {
|
|
76
76
|
type: 'string',
|
|
77
|
-
description: ( localize(
|
|
77
|
+
description: ( localize(6859, 'The ID of the icon definition for the association.'))
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
folderNamesExpanded: {
|
|
81
81
|
type: 'object',
|
|
82
82
|
description: ( localize(
|
|
83
|
-
|
|
83
|
+
6863,
|
|
84
84
|
'Associates folder names to icons for expanded folders. The object key is the folder name, not including any path segments. No patterns or wildcards are allowed. Folder name matching is case insensitive.'
|
|
85
85
|
)),
|
|
86
86
|
additionalProperties: {
|
|
87
87
|
type: 'string',
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(6864, 'The ID of the icon definition for the association.'))
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
fileExtensions: {
|
|
92
92
|
type: 'object',
|
|
93
93
|
description: ( localize(
|
|
94
|
-
|
|
94
|
+
6865,
|
|
95
95
|
'Associates file extensions to icons. The object key is the file extension name. The extension name is the last segment of a file name after the last dot (not including the dot). Extensions are compared case insensitive.'
|
|
96
96
|
)),
|
|
97
97
|
additionalProperties: {
|
|
98
98
|
type: 'string',
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(6866, 'The ID of the icon definition for the association.'))
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
fileNames: {
|
|
103
103
|
type: 'object',
|
|
104
104
|
description: ( localize(
|
|
105
|
-
|
|
105
|
+
6867,
|
|
106
106
|
'Associates file names to icons. The object key is the full file name, but not including any path segments. File name can include dots and a possible file extension. No patterns or wildcards are allowed. File name matching is case insensitive.'
|
|
107
107
|
)),
|
|
108
108
|
additionalProperties: {
|
|
109
109
|
type: 'string',
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(6868, 'The ID of the icon definition for the association.'))
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
languageIds: {
|
|
114
114
|
type: 'object',
|
|
115
115
|
description: ( localize(
|
|
116
|
-
|
|
116
|
+
6869,
|
|
117
117
|
'Associates languages to icons. The object key is the language id as defined in the language contribution point.'
|
|
118
118
|
)),
|
|
119
119
|
additionalProperties: {
|
|
120
120
|
type: 'string',
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(6870, 'The ID of the icon definition for the association.'))
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
associations: {
|
|
@@ -166,29 +166,29 @@ const schema = {
|
|
|
166
166
|
properties: {
|
|
167
167
|
fonts: {
|
|
168
168
|
type: 'array',
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(6871, 'Fonts that are used in the icon definitions.')),
|
|
170
170
|
items: {
|
|
171
171
|
type: 'object',
|
|
172
172
|
properties: {
|
|
173
173
|
id: {
|
|
174
174
|
type: 'string',
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(6872, 'The ID of the font.')),
|
|
176
176
|
pattern: fontIdRegex,
|
|
177
|
-
patternErrorMessage: ( localize(
|
|
177
|
+
patternErrorMessage: ( localize(6873, 'The ID must only contain letter, numbers, underscore and minus.'))
|
|
178
178
|
},
|
|
179
179
|
src: {
|
|
180
180
|
type: 'array',
|
|
181
|
-
description: ( localize(
|
|
181
|
+
description: ( localize(6874, 'The location of the font.')),
|
|
182
182
|
items: {
|
|
183
183
|
type: 'object',
|
|
184
184
|
properties: {
|
|
185
185
|
path: {
|
|
186
186
|
type: 'string',
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(6875, 'The font path, relative to the current file icon theme file.')),
|
|
188
188
|
},
|
|
189
189
|
format: {
|
|
190
190
|
type: 'string',
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(6876, 'The format of the font.')),
|
|
192
192
|
enum: ['woff', 'woff2', 'truetype', 'opentype', 'embedded-opentype', 'svg']
|
|
193
193
|
}
|
|
194
194
|
},
|
|
@@ -201,7 +201,7 @@ const schema = {
|
|
|
201
201
|
weight: {
|
|
202
202
|
type: 'string',
|
|
203
203
|
description: ( localize(
|
|
204
|
-
|
|
204
|
+
6877,
|
|
205
205
|
'The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values.'
|
|
206
206
|
)),
|
|
207
207
|
pattern: fontWeightRegex
|
|
@@ -209,7 +209,7 @@ const schema = {
|
|
|
209
209
|
style: {
|
|
210
210
|
type: 'string',
|
|
211
211
|
description: ( localize(
|
|
212
|
-
|
|
212
|
+
6878,
|
|
213
213
|
'The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values.'
|
|
214
214
|
)),
|
|
215
215
|
pattern: fontStyleRegex
|
|
@@ -217,7 +217,7 @@ const schema = {
|
|
|
217
217
|
size: {
|
|
218
218
|
type: 'string',
|
|
219
219
|
description: ( localize(
|
|
220
|
-
|
|
220
|
+
6879,
|
|
221
221
|
'The default size of the font. We strongly recommend using a percentage value, for example: 125%.'
|
|
222
222
|
)),
|
|
223
223
|
pattern: fontSizeRegex
|
|
@@ -232,33 +232,33 @@ const schema = {
|
|
|
232
232
|
iconDefinitions: {
|
|
233
233
|
type: 'object',
|
|
234
234
|
description: ( localize(
|
|
235
|
-
|
|
235
|
+
6880,
|
|
236
236
|
'Description of all icons that can be used when associating files to icons.'
|
|
237
237
|
)),
|
|
238
238
|
additionalProperties: {
|
|
239
239
|
type: 'object',
|
|
240
|
-
description: ( localize(
|
|
240
|
+
description: ( localize(6881, 'An icon definition. The object key is the ID of the definition.')),
|
|
241
241
|
properties: {
|
|
242
242
|
iconPath: {
|
|
243
243
|
type: 'string',
|
|
244
244
|
description: ( localize(
|
|
245
|
-
|
|
245
|
+
6882,
|
|
246
246
|
'When using a SVG or PNG: The path to the image. The path is relative to the icon set file.'
|
|
247
247
|
))
|
|
248
248
|
},
|
|
249
249
|
fontCharacter: {
|
|
250
250
|
type: 'string',
|
|
251
|
-
description: ( localize(
|
|
251
|
+
description: ( localize(6883, 'When using a glyph font: The character in the font to use.'))
|
|
252
252
|
},
|
|
253
253
|
fontColor: {
|
|
254
254
|
type: 'string',
|
|
255
255
|
format: 'color-hex',
|
|
256
|
-
description: ( localize(
|
|
256
|
+
description: ( localize(6884, 'When using a glyph font: The color to use.'))
|
|
257
257
|
},
|
|
258
258
|
fontSize: {
|
|
259
259
|
type: 'string',
|
|
260
260
|
description: ( localize(
|
|
261
|
-
|
|
261
|
+
6885,
|
|
262
262
|
'When using a font: The font size in percentage to the text font. If not set, defaults to the size in the font definition.'
|
|
263
263
|
)),
|
|
264
264
|
pattern: fontSizeRegex
|
|
@@ -266,7 +266,7 @@ const schema = {
|
|
|
266
266
|
fontId: {
|
|
267
267
|
type: 'string',
|
|
268
268
|
description: ( localize(
|
|
269
|
-
|
|
269
|
+
6886,
|
|
270
270
|
'When using a font: The id of the font. If not set, defaults to the first font definition.'
|
|
271
271
|
))
|
|
272
272
|
}
|
|
@@ -311,26 +311,26 @@ const schema = {
|
|
|
311
311
|
},
|
|
312
312
|
light: {
|
|
313
313
|
$ref: '#/definitions/associations',
|
|
314
|
-
description: ( localize(
|
|
314
|
+
description: ( localize(6887, 'Optional associations for file icons in light color themes.'))
|
|
315
315
|
},
|
|
316
316
|
highContrast: {
|
|
317
317
|
$ref: '#/definitions/associations',
|
|
318
318
|
description: ( localize(
|
|
319
|
-
|
|
319
|
+
6888,
|
|
320
320
|
'Optional associations for file icons in high contrast color themes.'
|
|
321
321
|
))
|
|
322
322
|
},
|
|
323
323
|
hidesExplorerArrows: {
|
|
324
324
|
type: 'boolean',
|
|
325
325
|
description: ( localize(
|
|
326
|
-
|
|
326
|
+
6889,
|
|
327
327
|
'Configures whether the file explorer\'s arrows should be hidden when this theme is active.'
|
|
328
328
|
))
|
|
329
329
|
},
|
|
330
330
|
showLanguageModeIcons: {
|
|
331
331
|
type: 'boolean',
|
|
332
332
|
description: ( localize(
|
|
333
|
-
|
|
333
|
+
6890,
|
|
334
334
|
'Configures whether the default language icons should be used if the theme does not define an icon for a language.'
|
|
335
335
|
))
|
|
336
336
|
}
|
|
@@ -21,23 +21,23 @@ const schema = {
|
|
|
21
21
|
properties: {
|
|
22
22
|
id: {
|
|
23
23
|
type: 'string',
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(6971, 'The ID of the font.')),
|
|
25
25
|
pattern: fontIdRegex,
|
|
26
|
-
patternErrorMessage: ( localize(
|
|
26
|
+
patternErrorMessage: ( localize(6972, 'The ID must only contain letters, numbers, underscore and minus.'))
|
|
27
27
|
},
|
|
28
28
|
src: {
|
|
29
29
|
type: 'array',
|
|
30
|
-
description: ( localize(
|
|
30
|
+
description: ( localize(6973, 'The location of the font.')),
|
|
31
31
|
items: {
|
|
32
32
|
type: 'object',
|
|
33
33
|
properties: {
|
|
34
34
|
path: {
|
|
35
35
|
type: 'string',
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(6974, 'The font path, relative to the current product icon theme file.')),
|
|
37
37
|
},
|
|
38
38
|
format: {
|
|
39
39
|
type: 'string',
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(6975, 'The format of the font.')),
|
|
41
41
|
enum: ['woff', 'woff2', 'truetype', 'opentype', 'embedded-opentype', 'svg']
|
|
42
42
|
}
|
|
43
43
|
},
|
|
@@ -50,7 +50,7 @@ const schema = {
|
|
|
50
50
|
weight: {
|
|
51
51
|
type: 'string',
|
|
52
52
|
description: ( localize(
|
|
53
|
-
|
|
53
|
+
6976,
|
|
54
54
|
'The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values.'
|
|
55
55
|
)),
|
|
56
56
|
anyOf: [
|
|
@@ -61,7 +61,7 @@ const schema = {
|
|
|
61
61
|
style: {
|
|
62
62
|
type: 'string',
|
|
63
63
|
description: ( localize(
|
|
64
|
-
|
|
64
|
+
6977,
|
|
65
65
|
'The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values.'
|
|
66
66
|
)),
|
|
67
67
|
anyOf: [
|
|
@@ -77,7 +77,7 @@ const schema = {
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
iconDefinitions: {
|
|
80
|
-
description: ( localize(
|
|
80
|
+
description: ( localize(6978, 'Association of icon name to a font character.')),
|
|
81
81
|
$ref: iconsSchemaId
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -30,7 +30,7 @@ const COLOR_THEME_CONFIGURATION_SETTINGS_TAG = 'colorThemeConfiguration';
|
|
|
30
30
|
const colorThemeSettingSchema = {
|
|
31
31
|
type: 'string',
|
|
32
32
|
markdownDescription: ( localize(
|
|
33
|
-
|
|
33
|
+
6927,
|
|
34
34
|
"Specifies the color theme used in the workbench when {0} is not enabled.",
|
|
35
35
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
36
36
|
)),
|
|
@@ -39,12 +39,12 @@ const colorThemeSettingSchema = {
|
|
|
39
39
|
enum: colorThemeSettingEnum,
|
|
40
40
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
41
41
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
42
|
-
errorMessage: ( localize(
|
|
42
|
+
errorMessage: ( localize(6928, "Theme is unknown or not installed.")),
|
|
43
43
|
};
|
|
44
44
|
const preferredDarkThemeSettingSchema = {
|
|
45
45
|
type: 'string',
|
|
46
46
|
markdownDescription: ( localize(
|
|
47
|
-
|
|
47
|
+
6929,
|
|
48
48
|
'Specifies the color theme when system color mode is dark and {0} is enabled.',
|
|
49
49
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
50
50
|
)),
|
|
@@ -53,12 +53,12 @@ const preferredDarkThemeSettingSchema = {
|
|
|
53
53
|
enum: colorThemeSettingEnum,
|
|
54
54
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
55
55
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
56
|
-
errorMessage: ( localize(
|
|
56
|
+
errorMessage: ( localize(6928, "Theme is unknown or not installed.")),
|
|
57
57
|
};
|
|
58
58
|
const preferredLightThemeSettingSchema = {
|
|
59
59
|
type: 'string',
|
|
60
60
|
markdownDescription: ( localize(
|
|
61
|
-
|
|
61
|
+
6930,
|
|
62
62
|
'Specifies the color theme when system color mode is light and {0} is enabled.',
|
|
63
63
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
64
64
|
)),
|
|
@@ -67,12 +67,12 @@ const preferredLightThemeSettingSchema = {
|
|
|
67
67
|
enum: colorThemeSettingEnum,
|
|
68
68
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
69
69
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
70
|
-
errorMessage: ( localize(
|
|
70
|
+
errorMessage: ( localize(6928, "Theme is unknown or not installed.")),
|
|
71
71
|
};
|
|
72
72
|
const preferredHCDarkThemeSettingSchema = {
|
|
73
73
|
type: 'string',
|
|
74
74
|
markdownDescription: ( localize(
|
|
75
|
-
|
|
75
|
+
6931,
|
|
76
76
|
'Specifies the color theme when in high contrast dark mode and {0} is enabled.',
|
|
77
77
|
formatSettingAsLink(ThemeSettings.DETECT_HC)
|
|
78
78
|
)),
|
|
@@ -81,12 +81,12 @@ const preferredHCDarkThemeSettingSchema = {
|
|
|
81
81
|
enum: colorThemeSettingEnum,
|
|
82
82
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
83
83
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
84
|
-
errorMessage: ( localize(
|
|
84
|
+
errorMessage: ( localize(6928, "Theme is unknown or not installed.")),
|
|
85
85
|
};
|
|
86
86
|
const preferredHCLightThemeSettingSchema = {
|
|
87
87
|
type: 'string',
|
|
88
88
|
markdownDescription: ( localize(
|
|
89
|
-
|
|
89
|
+
6932,
|
|
90
90
|
'Specifies the color theme when in high contrast light mode and {0} is enabled.',
|
|
91
91
|
formatSettingAsLink(ThemeSettings.DETECT_HC)
|
|
92
92
|
)),
|
|
@@ -95,12 +95,12 @@ const preferredHCLightThemeSettingSchema = {
|
|
|
95
95
|
enum: colorThemeSettingEnum,
|
|
96
96
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
97
97
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
98
|
-
errorMessage: ( localize(
|
|
98
|
+
errorMessage: ( localize(6928, "Theme is unknown or not installed.")),
|
|
99
99
|
};
|
|
100
100
|
const detectColorSchemeSettingSchema = {
|
|
101
101
|
type: 'boolean',
|
|
102
102
|
markdownDescription: ( localize(
|
|
103
|
-
|
|
103
|
+
6933,
|
|
104
104
|
'If enabled, will automatically select a color theme based on the system color mode. If the system color mode is dark, {0} is used, else {1}.',
|
|
105
105
|
formatSettingAsLink(ThemeSettings.PREFERRED_DARK_THEME),
|
|
106
106
|
formatSettingAsLink(ThemeSettings.PREFERRED_LIGHT_THEME)
|
|
@@ -110,7 +110,7 @@ const detectColorSchemeSettingSchema = {
|
|
|
110
110
|
};
|
|
111
111
|
const colorCustomizationsSchema = {
|
|
112
112
|
type: 'object',
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(6934, "Overrides colors from the currently selected color theme.")),
|
|
114
114
|
allOf: [{ $ref: workbenchColorsSchemaId }],
|
|
115
115
|
default: {},
|
|
116
116
|
defaultSnippets: [{
|
|
@@ -121,28 +121,28 @@ const fileIconThemeSettingSchema = {
|
|
|
121
121
|
type: ['string', 'null'],
|
|
122
122
|
default: ThemeSettingDefaults.FILE_ICON_THEME,
|
|
123
123
|
description: ( localize(
|
|
124
|
-
|
|
124
|
+
6935,
|
|
125
125
|
"Specifies the file icon theme used in the workbench or 'null' to not show any file icons."
|
|
126
126
|
)),
|
|
127
127
|
enum: [null],
|
|
128
|
-
enumItemLabels: [( localize(
|
|
129
|
-
enumDescriptions: [( localize(
|
|
130
|
-
errorMessage: ( localize(
|
|
128
|
+
enumItemLabels: [( localize(6936, 'None'))],
|
|
129
|
+
enumDescriptions: [( localize(6937, 'No file icons'))],
|
|
130
|
+
errorMessage: ( localize(6938, "File icon theme is unknown or not installed."))
|
|
131
131
|
};
|
|
132
132
|
const productIconThemeSettingSchema = {
|
|
133
133
|
type: ['string', 'null'],
|
|
134
134
|
default: ThemeSettingDefaults.PRODUCT_ICON_THEME,
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(6939, "Specifies the product icon theme used.")),
|
|
136
136
|
enum: [ThemeSettingDefaults.PRODUCT_ICON_THEME],
|
|
137
|
-
enumItemLabels: [( localize(
|
|
138
|
-
enumDescriptions: [( localize(
|
|
139
|
-
errorMessage: ( localize(
|
|
137
|
+
enumItemLabels: [( localize(6940, 'Default'))],
|
|
138
|
+
enumDescriptions: [( localize(6941, 'Default'))],
|
|
139
|
+
errorMessage: ( localize(6942, "Product icon theme is unknown or not installed."))
|
|
140
140
|
};
|
|
141
141
|
const detectHCSchemeSettingSchema = {
|
|
142
142
|
type: 'boolean',
|
|
143
143
|
default: true,
|
|
144
144
|
markdownDescription: ( localize(
|
|
145
|
-
|
|
145
|
+
6943,
|
|
146
146
|
"If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme. The high contrast theme to use is specified by {0} and {1}.",
|
|
147
147
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_DARK_THEME),
|
|
148
148
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_LIGHT_THEME)
|
|
@@ -186,31 +186,31 @@ const themeSpecificSettingKey = '^\\[[^\\]]*(\\]\\s*\\[[^\\]]*)*\\]$';
|
|
|
186
186
|
const tokenColorSchema = {
|
|
187
187
|
type: 'object',
|
|
188
188
|
properties: {
|
|
189
|
-
comments: tokenGroupSettings(( localize(
|
|
190
|
-
strings: tokenGroupSettings(( localize(
|
|
191
|
-
keywords: tokenGroupSettings(( localize(
|
|
192
|
-
numbers: tokenGroupSettings(( localize(
|
|
193
|
-
types: tokenGroupSettings(( localize(
|
|
189
|
+
comments: tokenGroupSettings(( localize(6944, "Sets the colors and styles for comments"))),
|
|
190
|
+
strings: tokenGroupSettings(( localize(6945, "Sets the colors and styles for strings literals."))),
|
|
191
|
+
keywords: tokenGroupSettings(( localize(6946, "Sets the colors and styles for keywords."))),
|
|
192
|
+
numbers: tokenGroupSettings(( localize(6947, "Sets the colors and styles for number literals."))),
|
|
193
|
+
types: tokenGroupSettings(( localize(6948, "Sets the colors and styles for type declarations and references."))),
|
|
194
194
|
functions: tokenGroupSettings(( localize(
|
|
195
|
-
|
|
195
|
+
6949,
|
|
196
196
|
"Sets the colors and styles for functions declarations and references."
|
|
197
197
|
))),
|
|
198
198
|
variables: tokenGroupSettings(( localize(
|
|
199
|
-
|
|
199
|
+
6950,
|
|
200
200
|
"Sets the colors and styles for variables declarations and references."
|
|
201
201
|
))),
|
|
202
202
|
textMateRules: {
|
|
203
|
-
description: ( localize(
|
|
203
|
+
description: ( localize(6951, 'Sets colors and styles using textmate theming rules (advanced).')),
|
|
204
204
|
$ref: textmateColorsSchemaId
|
|
205
205
|
},
|
|
206
206
|
semanticHighlighting: {
|
|
207
|
-
description: ( localize(
|
|
207
|
+
description: ( localize(6952, 'Whether semantic highlighting should be enabled for this theme.')),
|
|
208
208
|
deprecationMessage: ( localize(
|
|
209
|
-
|
|
209
|
+
6953,
|
|
210
210
|
'Use `enabled` in `editor.semanticTokenColorCustomizations` setting instead.'
|
|
211
211
|
)),
|
|
212
212
|
markdownDeprecationMessage: ( localize(
|
|
213
|
-
|
|
213
|
+
6954,
|
|
214
214
|
'Use `enabled` in {0} setting instead.',
|
|
215
215
|
formatSettingAsLink('editor.semanticTokenColorCustomizations')
|
|
216
216
|
)),
|
|
@@ -221,7 +221,7 @@ const tokenColorSchema = {
|
|
|
221
221
|
};
|
|
222
222
|
const tokenColorCustomizationSchema = {
|
|
223
223
|
description: ( localize(
|
|
224
|
-
|
|
224
|
+
6955,
|
|
225
225
|
"Overrides editor syntax colors and font style from the currently selected color theme."
|
|
226
226
|
)),
|
|
227
227
|
default: {},
|
|
@@ -233,14 +233,14 @@ const semanticTokenColorSchema = {
|
|
|
233
233
|
enabled: {
|
|
234
234
|
type: 'boolean',
|
|
235
235
|
description: ( localize(
|
|
236
|
-
|
|
236
|
+
6956,
|
|
237
237
|
'Whether semantic highlighting is enabled or disabled for this theme'
|
|
238
238
|
)),
|
|
239
239
|
suggestSortText: '0_enabled'
|
|
240
240
|
},
|
|
241
241
|
rules: {
|
|
242
242
|
$ref: tokenStylingSchemaId,
|
|
243
|
-
description: ( localize(
|
|
243
|
+
description: ( localize(6957, 'Semantic token styling rules for this theme.')),
|
|
244
244
|
suggestSortText: '0_rules'
|
|
245
245
|
}
|
|
246
246
|
},
|
|
@@ -248,7 +248,7 @@ const semanticTokenColorSchema = {
|
|
|
248
248
|
};
|
|
249
249
|
const semanticTokenColorCustomizationSchema = {
|
|
250
250
|
description: ( localize(
|
|
251
|
-
|
|
251
|
+
6958,
|
|
252
252
|
"Overrides editor semantic token color and styles from the currently selected color theme."
|
|
253
253
|
)),
|
|
254
254
|
default: {},
|
|
@@ -14,30 +14,30 @@ function registerColorThemeExtensionPoint() {
|
|
|
14
14
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
15
15
|
extensionPoint: 'themes',
|
|
16
16
|
jsonSchema: {
|
|
17
|
-
description: ( localize(
|
|
17
|
+
description: ( localize(6906, 'Contributes textmate color themes.')),
|
|
18
18
|
type: 'array',
|
|
19
19
|
items: {
|
|
20
20
|
type: 'object',
|
|
21
21
|
defaultSnippets: [{ body: { label: '${1:label}', id: '${2:id}', uiTheme: VS_DARK_THEME, path: './themes/${3:id}.tmTheme.' } }],
|
|
22
22
|
properties: {
|
|
23
23
|
id: {
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(6907, 'Id of the color theme as used in the user settings.')),
|
|
25
25
|
type: 'string'
|
|
26
26
|
},
|
|
27
27
|
label: {
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(6908, 'Label of the color theme as shown in the UI.')),
|
|
29
29
|
type: 'string'
|
|
30
30
|
},
|
|
31
31
|
uiTheme: {
|
|
32
32
|
description: ( localize(
|
|
33
|
-
|
|
33
|
+
6909,
|
|
34
34
|
'Base theme defining the colors around the editor: \'vs\' is the light color theme, \'vs-dark\' is the dark color theme. \'hc-black\' is the dark high contrast theme, \'hc-light\' is the light high contrast theme.'
|
|
35
35
|
)),
|
|
36
36
|
enum: [VS_LIGHT_THEME, VS_DARK_THEME, VS_HC_THEME, VS_HC_LIGHT_THEME]
|
|
37
37
|
},
|
|
38
38
|
path: {
|
|
39
39
|
description: ( localize(
|
|
40
|
-
|
|
40
|
+
6910,
|
|
41
41
|
'Path of the tmTheme file. The path is relative to the extension folder and is typically \'./colorthemes/awesome-color-theme.json\'.'
|
|
42
42
|
)),
|
|
43
43
|
type: 'string'
|
|
@@ -52,23 +52,23 @@ function registerFileIconThemeExtensionPoint() {
|
|
|
52
52
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
53
53
|
extensionPoint: 'iconThemes',
|
|
54
54
|
jsonSchema: {
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(6911, 'Contributes file icon themes.')),
|
|
56
56
|
type: 'array',
|
|
57
57
|
items: {
|
|
58
58
|
type: 'object',
|
|
59
59
|
defaultSnippets: [{ body: { id: '${1:id}', label: '${2:label}', path: './fileicons/${3:id}-icon-theme.json' } }],
|
|
60
60
|
properties: {
|
|
61
61
|
id: {
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(6912, 'Id of the file icon theme as used in the user settings.')),
|
|
63
63
|
type: 'string'
|
|
64
64
|
},
|
|
65
65
|
label: {
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(6913, 'Label of the file icon theme as shown in the UI.')),
|
|
67
67
|
type: 'string'
|
|
68
68
|
},
|
|
69
69
|
path: {
|
|
70
70
|
description: ( localize(
|
|
71
|
-
|
|
71
|
+
6914,
|
|
72
72
|
'Path of the file icon theme definition file. The path is relative to the extension folder and is typically \'./fileicons/awesome-icon-theme.json\'.'
|
|
73
73
|
)),
|
|
74
74
|
type: 'string'
|
|
@@ -83,23 +83,23 @@ function registerProductIconThemeExtensionPoint() {
|
|
|
83
83
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
84
84
|
extensionPoint: 'productIconThemes',
|
|
85
85
|
jsonSchema: {
|
|
86
|
-
description: ( localize(
|
|
86
|
+
description: ( localize(6915, 'Contributes product icon themes.')),
|
|
87
87
|
type: 'array',
|
|
88
88
|
items: {
|
|
89
89
|
type: 'object',
|
|
90
90
|
defaultSnippets: [{ body: { id: '${1:id}', label: '${2:label}', path: './producticons/${3:id}-product-icon-theme.json' } }],
|
|
91
91
|
properties: {
|
|
92
92
|
id: {
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(6916, 'Id of the product icon theme as used in the user settings.')),
|
|
94
94
|
type: 'string'
|
|
95
95
|
},
|
|
96
96
|
label: {
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(6917, 'Label of the product icon theme as shown in the UI.')),
|
|
98
98
|
type: 'string'
|
|
99
99
|
},
|
|
100
100
|
path: {
|
|
101
101
|
description: ( localize(
|
|
102
|
-
|
|
102
|
+
6918,
|
|
103
103
|
'Path of the product icon theme definition file. The path is relative to the extension folder and is typically \'./producticons/awesome-product-icon-theme.json\'.'
|
|
104
104
|
)),
|
|
105
105
|
type: 'string'
|
|
@@ -121,19 +121,19 @@ class ThemeDataRenderer extends Disposable {
|
|
|
121
121
|
render(manifest) {
|
|
122
122
|
const markdown = ( (new MarkdownString()));
|
|
123
123
|
if (manifest.contributes?.themes) {
|
|
124
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
124
|
+
markdown.appendMarkdown(`### ${( localize(6919, "Color Themes"))}\n\n`);
|
|
125
125
|
for (const theme of manifest.contributes.themes) {
|
|
126
126
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
if (manifest.contributes?.iconThemes) {
|
|
130
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
130
|
+
markdown.appendMarkdown(`### ${( localize(6920, "File Icon Themes"))}\n\n`);
|
|
131
131
|
for (const theme of manifest.contributes.iconThemes) {
|
|
132
132
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
if (manifest.contributes?.productIconThemes) {
|
|
136
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
136
|
+
markdown.appendMarkdown(`### ${( localize(6921, "Product Icon Themes"))}\n\n`);
|
|
137
137
|
for (const theme of manifest.contributes.productIconThemes) {
|
|
138
138
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
139
139
|
}
|
|
@@ -146,7 +146,7 @@ class ThemeDataRenderer extends Disposable {
|
|
|
146
146
|
}
|
|
147
147
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
148
148
|
id: 'themes',
|
|
149
|
-
label: ( localize(
|
|
149
|
+
label: ( localize(6922, "Themes")),
|
|
150
150
|
access: {
|
|
151
151
|
canToggle: false
|
|
152
152
|
},
|
|
@@ -192,13 +192,13 @@ class ThemeRegistry {
|
|
|
192
192
|
}
|
|
193
193
|
onThemes(extensionData, extensionLocation, themeContributions, resultingThemes = [], log) {
|
|
194
194
|
if (!Array.isArray(themeContributions)) {
|
|
195
|
-
log?.error(( localize(
|
|
195
|
+
log?.error(( localize(6923, "Extension point `{0}` must be an array.", this.themesExtPoint.name)));
|
|
196
196
|
return resultingThemes;
|
|
197
197
|
}
|
|
198
198
|
themeContributions.forEach(theme => {
|
|
199
199
|
if (!theme.path || !isString(theme.path)) {
|
|
200
200
|
log?.error(( localize(
|
|
201
|
-
|
|
201
|
+
6924,
|
|
202
202
|
"Expected string in `contributes.{0}.path`. Provided value: {1}",
|
|
203
203
|
this.themesExtPoint.name,
|
|
204
204
|
String(theme.path)
|
|
@@ -207,7 +207,7 @@ class ThemeRegistry {
|
|
|
207
207
|
}
|
|
208
208
|
if (this.idRequired && (!theme.id || !isString(theme.id))) {
|
|
209
209
|
log?.error(( localize(
|
|
210
|
-
|
|
210
|
+
6925,
|
|
211
211
|
"Expected string in `contributes.{0}.id`. Provided value: {1}",
|
|
212
212
|
this.themesExtPoint.name,
|
|
213
213
|
String(theme.id)
|
|
@@ -217,7 +217,7 @@ class ThemeRegistry {
|
|
|
217
217
|
const themeLocation = joinPath(extensionLocation, theme.path);
|
|
218
218
|
if (!isEqualOrParent(themeLocation, extensionLocation)) {
|
|
219
219
|
log?.warn(( localize(
|
|
220
|
-
|
|
220
|
+
6926,
|
|
221
221
|
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
222
222
|
this.themesExtPoint.name,
|
|
223
223
|
themeLocation.path,
|