@codingame/monaco-vscode-theme-service-override 32.0.2 → 33.0.9
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 +4 -4
- package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +45 -45
- 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 +4 -4
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +16 -16
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +38 -38
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +7 -7
- 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,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-theme-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - theme service-override",
|
|
6
6
|
"keywords": [],
|
|
7
|
+
"license": "MIT",
|
|
7
8
|
"author": {
|
|
8
9
|
"name": "CodinGame",
|
|
9
10
|
"url": "http://www.codingame.com"
|
|
10
11
|
},
|
|
11
|
-
"license": "MIT",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "33.0.9",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "33.0.9"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -53,7 +53,7 @@ import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/com
|
|
|
53
53
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
54
54
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
55
55
|
|
|
56
|
-
const manageExtensionIcon = registerIcon("theme-selection-manage-extension", Codicon.gear, ( localize(
|
|
56
|
+
const manageExtensionIcon = registerIcon("theme-selection-manage-extension", Codicon.gear, ( localize(15335, "Icon for the 'Manage' action in the theme selection quick pick.")));
|
|
57
57
|
var ConfigureItem;
|
|
58
58
|
(function(ConfigureItem) {
|
|
59
59
|
ConfigureItem["BROWSE_GALLERY"] = "marketplace";
|
|
@@ -184,7 +184,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
|
|
|
184
184
|
quickpick.matchOnDescription = true;
|
|
185
185
|
quickpick.buttons = [this.quickInputService.backButton];
|
|
186
186
|
quickpick.title = "Marketplace Themes";
|
|
187
|
-
quickpick.placeholder = ( localize(
|
|
187
|
+
quickpick.placeholder = ( localize(15336, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
|
|
188
188
|
quickpick.canSelectMany = false;
|
|
189
189
|
disposables.add(quickpick.onDidChangeValue(() => this.trigger(quickpick.value)));
|
|
190
190
|
disposables.add(quickpick.onDidAccept(async _ => {
|
|
@@ -238,7 +238,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
|
|
|
238
238
|
});
|
|
239
239
|
} else if (items.length === 0 && this._searchError) {
|
|
240
240
|
items = [{
|
|
241
|
-
label: `$(error) ${( localize(
|
|
241
|
+
label: `$(error) ${( localize(15337, "Error while searching for themes: {0}", this._searchError))}`,
|
|
242
242
|
id: undefined,
|
|
243
243
|
alwaysShow: true
|
|
244
244
|
}];
|
|
@@ -260,12 +260,12 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
|
|
|
260
260
|
this.extensionsWorkbenchService.openSearch(`@id:${galleryExtension.identifier.id}`);
|
|
261
261
|
const result = await this.dialogService.confirm({
|
|
262
262
|
message: ( localize(
|
|
263
|
-
|
|
263
|
+
15338,
|
|
264
264
|
"This will install extension '{0}' published by '{1}'. Do you want to continue?",
|
|
265
265
|
galleryExtension.displayName,
|
|
266
266
|
galleryExtension.publisherDisplayName
|
|
267
267
|
)),
|
|
268
|
-
primaryButton: ( localize(
|
|
268
|
+
primaryButton: ( localize(15339, "OK"))
|
|
269
269
|
});
|
|
270
270
|
if (!result.confirmed) {
|
|
271
271
|
return false;
|
|
@@ -273,7 +273,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
|
|
|
273
273
|
try {
|
|
274
274
|
await this.progressService.withProgress({
|
|
275
275
|
location: ProgressLocation.Notification,
|
|
276
|
-
title: ( localize(
|
|
276
|
+
title: ( localize(15340, "Installing Extension {0}...", galleryExtension.displayName))
|
|
277
277
|
}, async () => {
|
|
278
278
|
await this.extensionManagementService.installFromGallery(galleryExtension, {
|
|
279
279
|
isMachineScoped: false
|
|
@@ -424,7 +424,7 @@ registerAction2(class extends Action2 {
|
|
|
424
424
|
constructor() {
|
|
425
425
|
super({
|
|
426
426
|
id: SelectColorThemeCommandId,
|
|
427
|
-
title: ( localize2(
|
|
427
|
+
title: ( localize2(15341, "Color Theme")),
|
|
428
428
|
category: Categories.Preferences,
|
|
429
429
|
f1: true,
|
|
430
430
|
keybinding: {
|
|
@@ -436,15 +436,15 @@ registerAction2(class extends Action2 {
|
|
|
436
436
|
getTitle(colorScheme) {
|
|
437
437
|
switch (colorScheme) {
|
|
438
438
|
case ColorScheme.DARK:
|
|
439
|
-
return localize(
|
|
439
|
+
return localize(15342, "Select Color Theme for System Dark Mode");
|
|
440
440
|
case ColorScheme.LIGHT:
|
|
441
|
-
return localize(
|
|
441
|
+
return localize(15343, "Select Color Theme for System Light Mode");
|
|
442
442
|
case ColorScheme.HIGH_CONTRAST_DARK:
|
|
443
|
-
return localize(
|
|
443
|
+
return localize(15344, "Select Color Theme for High Contrast Dark Mode");
|
|
444
444
|
case ColorScheme.HIGH_CONTRAST_LIGHT:
|
|
445
|
-
return localize(
|
|
445
|
+
return localize(15345, "Select Color Theme for High Contrast Light Mode");
|
|
446
446
|
default:
|
|
447
|
-
return localize(
|
|
447
|
+
return localize(15346, "Select Color Theme (detect system color mode disabled)");
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
async run(accessor) {
|
|
@@ -452,13 +452,13 @@ registerAction2(class extends Action2 {
|
|
|
452
452
|
const preferencesService = accessor.get(IPreferencesService);
|
|
453
453
|
const preferredColorScheme = themeService.getPreferredColorScheme();
|
|
454
454
|
const modeConfigureButton = {
|
|
455
|
-
tooltip: preferredColorScheme ? ( localize(
|
|
455
|
+
tooltip: preferredColorScheme ? ( localize(15347, "Detect system color mode enabled. Click to configure.")) : ( localize(15348, "Detect system color mode disabled. Click to configure.")),
|
|
456
456
|
iconClass: ThemeIcon.asClassName(Codicon.colorMode),
|
|
457
457
|
location: QuickInputButtonLocation.Inline
|
|
458
458
|
};
|
|
459
459
|
const options = {
|
|
460
|
-
installMessage: ( localize(
|
|
461
|
-
browseMessage: "$(plus) " + ( localize(
|
|
460
|
+
installMessage: ( localize(15349, "Install Additional Color Themes...")),
|
|
461
|
+
browseMessage: "$(plus) " + ( localize(15350, "Browse Additional Color Themes...")),
|
|
462
462
|
placeholderMessage: this.getTitle(preferredColorScheme),
|
|
463
463
|
marketplaceTag: "category:themes",
|
|
464
464
|
buttons: [modeConfigureButton],
|
|
@@ -475,9 +475,9 @@ registerAction2(class extends Action2 {
|
|
|
475
475
|
const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
|
|
476
476
|
const themes = await themeService.getColorThemes();
|
|
477
477
|
const currentTheme = themeService.getColorTheme();
|
|
478
|
-
const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(
|
|
479
|
-
const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(
|
|
480
|
-
const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(
|
|
478
|
+
const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(15351, "light themes")));
|
|
479
|
+
const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(15352, "dark themes")));
|
|
480
|
+
const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(15353, "high contrast themes")));
|
|
481
481
|
let picks;
|
|
482
482
|
switch (preferredColorScheme) {
|
|
483
483
|
case ColorScheme.DARK:
|
|
@@ -500,7 +500,7 @@ registerAction2(class extends Action2 {
|
|
|
500
500
|
constructor() {
|
|
501
501
|
super({
|
|
502
502
|
id: SelectFileIconThemeCommandId,
|
|
503
|
-
title: ( localize2(
|
|
503
|
+
title: ( localize2(15354, "File Icon Theme")),
|
|
504
504
|
category: Categories.Preferences,
|
|
505
505
|
f1: true
|
|
506
506
|
});
|
|
@@ -508,8 +508,8 @@ registerAction2(class extends Action2 {
|
|
|
508
508
|
async run(accessor) {
|
|
509
509
|
const themeService = accessor.get(IWorkbenchThemeService);
|
|
510
510
|
const options = {
|
|
511
|
-
installMessage: ( localize(
|
|
512
|
-
placeholderMessage: ( localize(
|
|
511
|
+
installMessage: ( localize(15355, "Install Additional File Icon Themes...")),
|
|
512
|
+
placeholderMessage: ( localize(15356, "Select File Icon Theme (Up/Down Keys to Preview)")),
|
|
513
513
|
marketplaceTag: "tag:icon-theme"
|
|
514
514
|
};
|
|
515
515
|
const setTheme = (theme, settingsTarget) => themeService.setFileIconTheme(theme, settingsTarget);
|
|
@@ -518,12 +518,12 @@ registerAction2(class extends Action2 {
|
|
|
518
518
|
const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
|
|
519
519
|
const picks = [{
|
|
520
520
|
type: "separator",
|
|
521
|
-
label: ( localize(
|
|
521
|
+
label: ( localize(15357, "file icon themes"))
|
|
522
522
|
}, {
|
|
523
523
|
id: "",
|
|
524
524
|
theme: FileIconThemeData.noIconTheme,
|
|
525
|
-
label: ( localize(
|
|
526
|
-
description: ( localize(
|
|
525
|
+
label: ( localize(15358, "None")),
|
|
526
|
+
description: ( localize(15359, "Disable File Icons"))
|
|
527
527
|
}, ...toEntries(await themeService.getFileIconThemes())];
|
|
528
528
|
await picker.openQuickPick(picks, themeService.getFileIconTheme());
|
|
529
529
|
}
|
|
@@ -533,7 +533,7 @@ registerAction2(class extends Action2 {
|
|
|
533
533
|
constructor() {
|
|
534
534
|
super({
|
|
535
535
|
id: SelectProductIconThemeCommandId,
|
|
536
|
-
title: ( localize2(
|
|
536
|
+
title: ( localize2(15360, "Product Icon Theme")),
|
|
537
537
|
category: Categories.Preferences,
|
|
538
538
|
f1: true
|
|
539
539
|
});
|
|
@@ -541,9 +541,9 @@ registerAction2(class extends Action2 {
|
|
|
541
541
|
async run(accessor) {
|
|
542
542
|
const themeService = accessor.get(IWorkbenchThemeService);
|
|
543
543
|
const options = {
|
|
544
|
-
installMessage: ( localize(
|
|
545
|
-
browseMessage: "$(plus) " + ( localize(
|
|
546
|
-
placeholderMessage: ( localize(
|
|
544
|
+
installMessage: ( localize(15361, "Install Additional Product Icon Themes...")),
|
|
545
|
+
browseMessage: "$(plus) " + ( localize(15362, "Browse Additional Product Icon Themes...")),
|
|
546
|
+
placeholderMessage: ( localize(15363, "Select Product Icon Theme (Up/Down Keys to Preview)")),
|
|
547
547
|
marketplaceTag: "tag:product-icon-theme"
|
|
548
548
|
};
|
|
549
549
|
const setTheme = (theme, settingsTarget) => themeService.setProductIconTheme(theme, settingsTarget);
|
|
@@ -552,11 +552,11 @@ registerAction2(class extends Action2 {
|
|
|
552
552
|
const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
|
|
553
553
|
const picks = [{
|
|
554
554
|
type: "separator",
|
|
555
|
-
label: ( localize(
|
|
555
|
+
label: ( localize(15364, "product icon themes"))
|
|
556
556
|
}, {
|
|
557
557
|
id: DEFAULT_PRODUCT_ICON_THEME_ID,
|
|
558
558
|
theme: ProductIconThemeData.defaultTheme,
|
|
559
|
-
label: ( localize(
|
|
559
|
+
label: ( localize(15365, "Default"))
|
|
560
560
|
}, ...toEntries(await themeService.getProductIconThemes())];
|
|
561
561
|
await picker.openQuickPick(picks, themeService.getProductIconTheme());
|
|
562
562
|
}
|
|
@@ -565,7 +565,7 @@ registerAction2(class extends Action2 {
|
|
|
565
565
|
constructor() {
|
|
566
566
|
super({
|
|
567
567
|
id: "workbench.action.tryNewDefaultThemes",
|
|
568
|
-
title: ( localize2(
|
|
568
|
+
title: ( localize2(15366, "Try New Default Themes")),
|
|
569
569
|
category: Categories.Preferences,
|
|
570
570
|
f1: true
|
|
571
571
|
});
|
|
@@ -589,7 +589,7 @@ registerAction2(class extends Action2 {
|
|
|
589
589
|
const disposables = ( new DisposableStore());
|
|
590
590
|
const picker = disposables.add(quickInputService.createQuickPick());
|
|
591
591
|
picker.items = items;
|
|
592
|
-
picker.placeholder = ( localize(
|
|
592
|
+
picker.placeholder = ( localize(15367, "Pick a new default theme"));
|
|
593
593
|
picker.canSelectMany = false;
|
|
594
594
|
const preferredId = (previousTheme.type === ColorScheme.LIGHT || previousTheme.type === ColorScheme.HIGH_CONTRAST_LIGHT) ? ThemeSettingDefaults.COLOR_THEME_LIGHT : ThemeSettingDefaults.COLOR_THEME_DARK;
|
|
595
595
|
const activeItem = items.find(i => themes.find(t => t.id === i.id)?.settingsId === preferredId);
|
|
@@ -675,8 +675,8 @@ function isItem(i) {
|
|
|
675
675
|
return i["type"] !== "separator";
|
|
676
676
|
}
|
|
677
677
|
const defaultThemeDescriptions = {
|
|
678
|
-
[ThemeSettingDefaults.COLOR_THEME_LIGHT]: ( localize(
|
|
679
|
-
[ThemeSettingDefaults.COLOR_THEME_DARK]: ( localize(
|
|
678
|
+
[ThemeSettingDefaults.COLOR_THEME_LIGHT]: ( localize(15368, "Default Light")),
|
|
679
|
+
[ThemeSettingDefaults.COLOR_THEME_DARK]: ( localize(15369, "Default Dark"))
|
|
680
680
|
};
|
|
681
681
|
function toEntry(theme) {
|
|
682
682
|
const settingId = theme.settingsId ?? undefined;
|
|
@@ -715,13 +715,13 @@ function toEntries(themes, label) {
|
|
|
715
715
|
}
|
|
716
716
|
const configureButton = {
|
|
717
717
|
iconClass: ThemeIcon.asClassName(manageExtensionIcon),
|
|
718
|
-
tooltip: ( localize(
|
|
718
|
+
tooltip: ( localize(15370, "Manage Extension"))
|
|
719
719
|
};
|
|
720
720
|
registerAction2(class extends Action2 {
|
|
721
721
|
constructor() {
|
|
722
722
|
super({
|
|
723
723
|
id: "workbench.action.generateColorTheme",
|
|
724
|
-
title: ( localize2(
|
|
724
|
+
title: ( localize2(15371, "Generate Color Theme From Current Settings")),
|
|
725
725
|
category: Categories.Developer,
|
|
726
726
|
f1: true
|
|
727
727
|
});
|
|
@@ -776,7 +776,7 @@ registerAction2(class extends Action2 {
|
|
|
776
776
|
constructor() {
|
|
777
777
|
super({
|
|
778
778
|
id: toggleLightDarkThemesCommandId,
|
|
779
|
-
title: ( localize2(
|
|
779
|
+
title: ( localize2(15372, "Toggle between Light/Dark Themes")),
|
|
780
780
|
category: Categories.Preferences,
|
|
781
781
|
f1: true
|
|
782
782
|
});
|
|
@@ -788,12 +788,12 @@ registerAction2(class extends Action2 {
|
|
|
788
788
|
const preferencesService = accessor.get(IPreferencesService);
|
|
789
789
|
if (configurationService.getValue(ThemeSettings.DETECT_COLOR_SCHEME)) {
|
|
790
790
|
const message = ( localize(
|
|
791
|
-
|
|
791
|
+
15373,
|
|
792
792
|
"Cannot toggle between light and dark themes when `{0}` is enabled in settings.",
|
|
793
793
|
ThemeSettings.DETECT_COLOR_SCHEME
|
|
794
794
|
));
|
|
795
795
|
notificationService.prompt(Severity.Info, message, [{
|
|
796
|
-
label: ( localize(
|
|
796
|
+
label: ( localize(15374, "Open Settings")),
|
|
797
797
|
run: () => {
|
|
798
798
|
return preferencesService.openUserSettings({
|
|
799
799
|
query: ThemeSettings.DETECT_COLOR_SCHEME
|
|
@@ -832,7 +832,7 @@ registerAction2(class extends Action2 {
|
|
|
832
832
|
constructor() {
|
|
833
833
|
super({
|
|
834
834
|
id: browseColorThemesInMarketplaceCommandId,
|
|
835
|
-
title: ( localize2(
|
|
835
|
+
title: ( localize2(15375, "Browse Color Themes in Marketplace")),
|
|
836
836
|
category: Categories.Preferences,
|
|
837
837
|
f1: true
|
|
838
838
|
});
|
|
@@ -873,13 +873,13 @@ registerAction2(class extends Action2 {
|
|
|
873
873
|
});
|
|
874
874
|
const ThemesSubMenu = ( new MenuId("ThemesSubMenu"));
|
|
875
875
|
MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
876
|
-
title: ( localize(
|
|
876
|
+
title: ( localize(15376, "Themes")),
|
|
877
877
|
submenu: ThemesSubMenu,
|
|
878
878
|
group: "2_configuration",
|
|
879
879
|
order: 7
|
|
880
880
|
});
|
|
881
881
|
MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
|
|
882
|
-
title: ( localize(
|
|
882
|
+
title: ( localize(15377, "&&Themes")),
|
|
883
883
|
submenu: ThemesSubMenu,
|
|
884
884
|
group: "2_configuration",
|
|
885
885
|
order: 7
|
|
@@ -887,21 +887,21 @@ MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
|
|
|
887
887
|
MenuRegistry.appendMenuItem(ThemesSubMenu, {
|
|
888
888
|
command: {
|
|
889
889
|
id: SelectColorThemeCommandId,
|
|
890
|
-
title: ( localize(
|
|
890
|
+
title: ( localize(15341, "Color Theme"))
|
|
891
891
|
},
|
|
892
892
|
order: 1
|
|
893
893
|
});
|
|
894
894
|
MenuRegistry.appendMenuItem(ThemesSubMenu, {
|
|
895
895
|
command: {
|
|
896
896
|
id: SelectFileIconThemeCommandId,
|
|
897
|
-
title: ( localize(
|
|
897
|
+
title: ( localize(15378, "File Icon Theme"))
|
|
898
898
|
},
|
|
899
899
|
order: 2
|
|
900
900
|
});
|
|
901
901
|
MenuRegistry.appendMenuItem(ThemesSubMenu, {
|
|
902
902
|
command: {
|
|
903
903
|
id: SelectProductIconThemeCommandId,
|
|
904
|
-
title: ( localize(
|
|
904
|
+
title: ( localize(15379, "Product Icon Theme"))
|
|
905
905
|
},
|
|
906
906
|
order: 3
|
|
907
907
|
});
|
|
@@ -149,12 +149,12 @@ class FileIconThemeLoader {
|
|
|
149
149
|
const contentValue = parse(content, errors);
|
|
150
150
|
if (errors.length > 0) {
|
|
151
151
|
return Promise.reject(( new Error(( localize(
|
|
152
|
-
|
|
152
|
+
17094,
|
|
153
153
|
"Problems parsing file icons file: {0}",
|
|
154
154
|
( errors.map(e => getParseErrorMessage(e.error))).join(", ")
|
|
155
155
|
)))));
|
|
156
156
|
} else if (getNodeType(contentValue) !== "object") {
|
|
157
|
-
return Promise.reject(( new Error(( localize(
|
|
157
|
+
return Promise.reject(( new Error(( localize(17095, "Invalid format for file icons theme file: Object expected.")))));
|
|
158
158
|
}
|
|
159
159
|
return Promise.resolve(contentValue);
|
|
160
160
|
});
|
|
@@ -43,7 +43,7 @@ class ProductIconThemeData {
|
|
|
43
43
|
this.isLoaded = true;
|
|
44
44
|
if (warnings.length) {
|
|
45
45
|
logService.error(( localize(
|
|
46
|
-
|
|
46
|
+
17096,
|
|
47
47
|
"Problems processing product icons definitions in {0}:\n{1}",
|
|
48
48
|
(location.toString()),
|
|
49
49
|
warnings.join("\n")
|
|
@@ -76,7 +76,7 @@ class ProductIconThemeData {
|
|
|
76
76
|
static get defaultTheme() {
|
|
77
77
|
let themeData = ProductIconThemeData._defaultProductIconTheme;
|
|
78
78
|
if (!themeData) {
|
|
79
|
-
themeData = ProductIconThemeData._defaultProductIconTheme = ( new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(
|
|
79
|
+
themeData = ProductIconThemeData._defaultProductIconTheme = ( new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(17097, "Default")), ThemeSettingDefaults.PRODUCT_ICON_THEME));
|
|
80
80
|
themeData.isLoaded = true;
|
|
81
81
|
themeData.extensionData = undefined;
|
|
82
82
|
themeData.watch = false;
|
|
@@ -187,15 +187,15 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
187
187
|
const contentValue = parse(content, parseErrors);
|
|
188
188
|
if (parseErrors.length > 0) {
|
|
189
189
|
return Promise.reject(( new Error(( localize(
|
|
190
|
-
|
|
190
|
+
17098,
|
|
191
191
|
"Problems parsing product icons file: {0}",
|
|
192
192
|
( parseErrors.map(e => getParseErrorMessage(e.error))).join(", ")
|
|
193
193
|
)))));
|
|
194
194
|
} else if (getNodeType(contentValue) !== "object") {
|
|
195
|
-
return Promise.reject(( new Error(( localize(
|
|
195
|
+
return Promise.reject(( new Error(( localize(17099, "Invalid format for product icons theme file: Object expected.")))));
|
|
196
196
|
} else if (!contentValue.iconDefinitions || !Array.isArray(contentValue.fonts) || !contentValue.fonts.length) {
|
|
197
197
|
return Promise.reject(( new Error(( localize(
|
|
198
|
-
|
|
198
|
+
17100,
|
|
199
199
|
"Invalid format for product icons theme file: Must contain iconDefinitions and fonts."
|
|
200
200
|
)))));
|
|
201
201
|
}
|
|
@@ -208,13 +208,13 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
208
208
|
if (isString(font.weight) && font.weight.match(fontWeightRegex)) {
|
|
209
209
|
fontWeight = font.weight;
|
|
210
210
|
} else {
|
|
211
|
-
warnings.push(( localize(
|
|
211
|
+
warnings.push(( localize(17101, "Invalid font weight in font '{0}'. Ignoring setting.", font.id)));
|
|
212
212
|
}
|
|
213
213
|
let fontStyle = undefined;
|
|
214
214
|
if (isString(font.style) && font.style.match(fontStyleRegex)) {
|
|
215
215
|
fontStyle = font.style;
|
|
216
216
|
} else {
|
|
217
|
-
warnings.push(( localize(
|
|
217
|
+
warnings.push(( localize(17102, "Invalid font style in font '{0}'. Ignoring setting.", font.id)));
|
|
218
218
|
}
|
|
219
219
|
const sanitizedSrc = [];
|
|
220
220
|
if (Array.isArray(font.src)) {
|
|
@@ -226,7 +226,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
226
226
|
format: s.format
|
|
227
227
|
});
|
|
228
228
|
} else {
|
|
229
|
-
warnings.push(( localize(
|
|
229
|
+
warnings.push(( localize(17103, "Invalid font source in font '{0}'. Ignoring source.", font.id)));
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -238,14 +238,14 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
238
238
|
});
|
|
239
239
|
} else {
|
|
240
240
|
warnings.push(( localize(
|
|
241
|
-
|
|
241
|
+
17104,
|
|
242
242
|
"No valid font source in font '{0}'. Ignoring font definition.",
|
|
243
243
|
font.id
|
|
244
244
|
)));
|
|
245
245
|
}
|
|
246
246
|
} else {
|
|
247
247
|
warnings.push(( localize(
|
|
248
|
-
|
|
248
|
+
17105,
|
|
249
249
|
"Missing or invalid font id '{0}'. Skipping font definition.",
|
|
250
250
|
font.id
|
|
251
251
|
)));
|
|
@@ -268,10 +268,10 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
268
268
|
font
|
|
269
269
|
});
|
|
270
270
|
} else {
|
|
271
|
-
warnings.push(( localize(
|
|
271
|
+
warnings.push(( localize(17106, "Skipping icon definition '{0}'. Unknown font.", iconId)));
|
|
272
272
|
}
|
|
273
273
|
} else {
|
|
274
|
-
warnings.push(( localize(
|
|
274
|
+
warnings.push(( localize(17107, "Skipping icon definition '{0}': Needs to be defined", iconId)));
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
return {
|
|
@@ -291,16 +291,16 @@ let WorkbenchThemeService = class WorkbenchThemeService extends Disposable {
|
|
|
291
291
|
}
|
|
292
292
|
const keepTheme = await ( new Promise(resolve => {
|
|
293
293
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
294
|
-
|
|
294
|
+
17108,
|
|
295
295
|
"VS Code has a new default theme: '{0}'.",
|
|
296
296
|
this.getColorTheme().label
|
|
297
297
|
)), [toAction({
|
|
298
298
|
id: "themeUpdated.tryItOut",
|
|
299
|
-
label: ( localize(
|
|
299
|
+
label: ( localize(17109, "Keep It")),
|
|
300
300
|
run: () => resolve(true)
|
|
301
301
|
}), toAction({
|
|
302
302
|
id: "themeUpdated.noThanks",
|
|
303
|
-
label: ( localize(
|
|
303
|
+
label: ( localize(17110, "No Thanks")),
|
|
304
304
|
run: () => resolve(false)
|
|
305
305
|
})], {
|
|
306
306
|
onCancel: () => resolve(false)
|
|
@@ -496,7 +496,7 @@ let WorkbenchThemeService = class WorkbenchThemeService extends Disposable {
|
|
|
496
496
|
return this.applyTheme(themeData, settingsTarget);
|
|
497
497
|
} catch (error) {
|
|
498
498
|
throw ( new Error(( localize(
|
|
499
|
-
|
|
499
|
+
17111,
|
|
500
500
|
"Unable to load {0}: {1}",
|
|
501
501
|
themeData.location?.toString(),
|
|
502
502
|
error.message
|
|
@@ -133,31 +133,31 @@ const textmateColorSchema = {
|
|
|
133
133
|
},
|
|
134
134
|
settings: {
|
|
135
135
|
type: "object",
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(17142, "Colors and styles for the token.")),
|
|
137
137
|
properties: {
|
|
138
138
|
foreground: {
|
|
139
139
|
type: "string",
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(17143, "Foreground color for the token.")),
|
|
141
141
|
format: "color-hex",
|
|
142
142
|
default: "#ff0000"
|
|
143
143
|
},
|
|
144
144
|
background: {
|
|
145
145
|
type: "string",
|
|
146
|
-
deprecationMessage: ( localize(
|
|
146
|
+
deprecationMessage: ( localize(17144, "Token background colors are currently not supported."))
|
|
147
147
|
},
|
|
148
148
|
fontStyle: {
|
|
149
149
|
type: "string",
|
|
150
150
|
description: ( localize(
|
|
151
|
-
|
|
151
|
+
17145,
|
|
152
152
|
"Font style of the rule: 'italic', 'bold', 'underline', 'strikethrough' or a combination. The empty string unsets inherited settings."
|
|
153
153
|
)),
|
|
154
154
|
pattern: "^(\\s*\\b(italic|bold|underline|strikethrough))*\\s*$",
|
|
155
155
|
patternErrorMessage: ( localize(
|
|
156
|
-
|
|
156
|
+
17146,
|
|
157
157
|
"Font style must be 'italic', 'bold', 'underline', 'strikethrough' or a combination or the empty string."
|
|
158
158
|
)),
|
|
159
159
|
defaultSnippets: [{
|
|
160
|
-
label: ( localize(
|
|
160
|
+
label: ( localize(17147, "None (clear inherited style)")),
|
|
161
161
|
bodyText: "\"\""
|
|
162
162
|
}, {
|
|
163
163
|
body: "italic"
|
|
@@ -194,21 +194,21 @@ const textmateColorSchema = {
|
|
|
194
194
|
fontFamily: {
|
|
195
195
|
type: "string",
|
|
196
196
|
description: ( localize(
|
|
197
|
-
|
|
197
|
+
17148,
|
|
198
198
|
"Font family for the token (e.g., \"Fira Code\", \"JetBrains Mono\")."
|
|
199
199
|
))
|
|
200
200
|
},
|
|
201
201
|
fontSize: {
|
|
202
202
|
type: "number",
|
|
203
203
|
description: ( localize(
|
|
204
|
-
|
|
204
|
+
17149,
|
|
205
205
|
"Font size multiplier for the token (e.g., 1.2 will use 1.2 times the default font size)."
|
|
206
206
|
))
|
|
207
207
|
},
|
|
208
208
|
lineHeight: {
|
|
209
209
|
type: "number",
|
|
210
210
|
description: ( localize(
|
|
211
|
-
|
|
211
|
+
17150,
|
|
212
212
|
"Line height multiplier for the token (e.g., 1.2 will use 1.2 times the default height). If the font size is set and the line height is not explicitly set, the line height will be computed based on the font size."
|
|
213
213
|
))
|
|
214
214
|
}
|
|
@@ -235,10 +235,10 @@ const textmateColorSchema = {
|
|
|
235
235
|
properties: {
|
|
236
236
|
name: {
|
|
237
237
|
type: "string",
|
|
238
|
-
description: ( localize(
|
|
238
|
+
description: ( localize(17151, "Description of the rule."))
|
|
239
239
|
},
|
|
240
240
|
scope: {
|
|
241
|
-
description: ( localize(
|
|
241
|
+
description: ( localize(17152, "Scope selector against which this rule matches.")),
|
|
242
242
|
anyOf: [{
|
|
243
243
|
enum: textMateScopes
|
|
244
244
|
}, {
|
|
@@ -270,26 +270,26 @@ const colorThemeSchema = {
|
|
|
270
270
|
allowTrailingCommas: true,
|
|
271
271
|
properties: {
|
|
272
272
|
colors: {
|
|
273
|
-
description: ( localize(
|
|
273
|
+
description: ( localize(17153, "Colors in the workbench")),
|
|
274
274
|
$ref: workbenchColorsSchemaId,
|
|
275
275
|
additionalProperties: false
|
|
276
276
|
},
|
|
277
277
|
tokenColors: {
|
|
278
278
|
anyOf: [{
|
|
279
279
|
type: "string",
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(17154, "Path to a tmTheme file (relative to the current file)."))
|
|
281
281
|
}, {
|
|
282
|
-
description: ( localize(
|
|
282
|
+
description: ( localize(17155, "Colors for syntax highlighting")),
|
|
283
283
|
$ref: textmateColorsSchemaId
|
|
284
284
|
}]
|
|
285
285
|
},
|
|
286
286
|
semanticHighlighting: {
|
|
287
287
|
type: "boolean",
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(17156, "Whether semantic highlighting should be enabled for this theme."))
|
|
289
289
|
},
|
|
290
290
|
semanticTokenColors: {
|
|
291
291
|
type: "object",
|
|
292
|
-
description: ( localize(
|
|
292
|
+
description: ( localize(17157, "Colors for semantic tokens")),
|
|
293
293
|
$ref: tokenStylingSchemaId
|
|
294
294
|
}
|
|
295
295
|
}
|
|
@@ -13,113 +13,113 @@ const schema = {
|
|
|
13
13
|
folderExpanded: {
|
|
14
14
|
type: "string",
|
|
15
15
|
description: ( localize(
|
|
16
|
-
|
|
16
|
+
17158,
|
|
17
17
|
"The folder icon for expanded folders. The expanded folder icon is optional. If not set, the icon defined for folder will be shown."
|
|
18
18
|
))
|
|
19
19
|
},
|
|
20
20
|
folder: {
|
|
21
21
|
type: "string",
|
|
22
22
|
description: ( localize(
|
|
23
|
-
|
|
23
|
+
17159,
|
|
24
24
|
"The folder icon for collapsed folders, and if folderExpanded is not set, also for expanded folders."
|
|
25
25
|
))
|
|
26
26
|
},
|
|
27
27
|
file: {
|
|
28
28
|
type: "string",
|
|
29
29
|
description: ( localize(
|
|
30
|
-
|
|
30
|
+
17160,
|
|
31
31
|
"The default file icon, shown for all files that don't match any extension, filename or language id."
|
|
32
32
|
))
|
|
33
33
|
},
|
|
34
34
|
rootFolder: {
|
|
35
35
|
type: "string",
|
|
36
36
|
description: ( localize(
|
|
37
|
-
|
|
37
|
+
17161,
|
|
38
38
|
"The folder icon for collapsed root folders, and if rootFolderExpanded is not set, also for expanded root folders."
|
|
39
39
|
))
|
|
40
40
|
},
|
|
41
41
|
rootFolderExpanded: {
|
|
42
42
|
type: "string",
|
|
43
43
|
description: ( localize(
|
|
44
|
-
|
|
44
|
+
17162,
|
|
45
45
|
"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."
|
|
46
46
|
))
|
|
47
47
|
},
|
|
48
48
|
rootFolderNames: {
|
|
49
49
|
type: "object",
|
|
50
50
|
description: ( localize(
|
|
51
|
-
|
|
51
|
+
17163,
|
|
52
52
|
"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."
|
|
53
53
|
)),
|
|
54
54
|
additionalProperties: {
|
|
55
55
|
type: "string",
|
|
56
|
-
description: ( localize(
|
|
56
|
+
description: ( localize(17164, "The ID of the icon definition for the association."))
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
rootFolderNamesExpanded: {
|
|
60
60
|
type: "object",
|
|
61
61
|
description: ( localize(
|
|
62
|
-
|
|
62
|
+
17165,
|
|
63
63
|
"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."
|
|
64
64
|
)),
|
|
65
65
|
additionalProperties: {
|
|
66
66
|
type: "string",
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(17166, "The ID of the icon definition for the association."))
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
folderNames: {
|
|
71
71
|
type: "object",
|
|
72
72
|
description: ( localize(
|
|
73
|
-
|
|
73
|
+
17167,
|
|
74
74
|
"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."
|
|
75
75
|
)),
|
|
76
76
|
additionalProperties: {
|
|
77
77
|
type: "string",
|
|
78
|
-
description: ( localize(
|
|
78
|
+
description: ( localize(17164, "The ID of the icon definition for the association."))
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
folderNamesExpanded: {
|
|
82
82
|
type: "object",
|
|
83
83
|
description: ( localize(
|
|
84
|
-
|
|
84
|
+
17168,
|
|
85
85
|
"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."
|
|
86
86
|
)),
|
|
87
87
|
additionalProperties: {
|
|
88
88
|
type: "string",
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(17169, "The ID of the icon definition for the association."))
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
fileExtensions: {
|
|
93
93
|
type: "object",
|
|
94
94
|
description: ( localize(
|
|
95
|
-
|
|
95
|
+
17170,
|
|
96
96
|
"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."
|
|
97
97
|
)),
|
|
98
98
|
additionalProperties: {
|
|
99
99
|
type: "string",
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(17171, "The ID of the icon definition for the association."))
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
fileNames: {
|
|
104
104
|
type: "object",
|
|
105
105
|
description: ( localize(
|
|
106
|
-
|
|
106
|
+
17172,
|
|
107
107
|
"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."
|
|
108
108
|
)),
|
|
109
109
|
additionalProperties: {
|
|
110
110
|
type: "string",
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(17173, "The ID of the icon definition for the association."))
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
languageIds: {
|
|
115
115
|
type: "object",
|
|
116
116
|
description: ( localize(
|
|
117
|
-
|
|
117
|
+
17174,
|
|
118
118
|
"Associates languages to icons. The object key is the language id as defined in the language contribution point."
|
|
119
119
|
)),
|
|
120
120
|
additionalProperties: {
|
|
121
121
|
type: "string",
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(17175, "The ID of the icon definition for the association."))
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
associations: {
|
|
@@ -167,29 +167,29 @@ const schema = {
|
|
|
167
167
|
properties: {
|
|
168
168
|
fonts: {
|
|
169
169
|
type: "array",
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(17176, "Fonts that are used in the icon definitions.")),
|
|
171
171
|
items: {
|
|
172
172
|
type: "object",
|
|
173
173
|
properties: {
|
|
174
174
|
id: {
|
|
175
175
|
type: "string",
|
|
176
|
-
description: ( localize(
|
|
176
|
+
description: ( localize(17177, "The ID of the font.")),
|
|
177
177
|
pattern: fontIdRegex.source,
|
|
178
178
|
patternErrorMessage: fontIdErrorMessage
|
|
179
179
|
},
|
|
180
180
|
src: {
|
|
181
181
|
type: "array",
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(17178, "The location of the font.")),
|
|
183
183
|
items: {
|
|
184
184
|
type: "object",
|
|
185
185
|
properties: {
|
|
186
186
|
path: {
|
|
187
187
|
type: "string",
|
|
188
|
-
description: ( localize(
|
|
188
|
+
description: ( localize(17179, "The font path, relative to the current file icon theme file."))
|
|
189
189
|
},
|
|
190
190
|
format: {
|
|
191
191
|
type: "string",
|
|
192
|
-
description: ( localize(
|
|
192
|
+
description: ( localize(17180, "The format of the font.")),
|
|
193
193
|
enum: ["woff", "woff2", "truetype", "opentype", "embedded-opentype", "svg"]
|
|
194
194
|
}
|
|
195
195
|
},
|
|
@@ -199,7 +199,7 @@ const schema = {
|
|
|
199
199
|
weight: {
|
|
200
200
|
type: "string",
|
|
201
201
|
description: ( localize(
|
|
202
|
-
|
|
202
|
+
17181,
|
|
203
203
|
"The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values."
|
|
204
204
|
)),
|
|
205
205
|
pattern: fontWeightRegex.source
|
|
@@ -207,7 +207,7 @@ const schema = {
|
|
|
207
207
|
style: {
|
|
208
208
|
type: "string",
|
|
209
209
|
description: ( localize(
|
|
210
|
-
|
|
210
|
+
17182,
|
|
211
211
|
"The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values."
|
|
212
212
|
)),
|
|
213
213
|
pattern: fontStyleRegex.source
|
|
@@ -215,7 +215,7 @@ const schema = {
|
|
|
215
215
|
size: {
|
|
216
216
|
type: "string",
|
|
217
217
|
description: ( localize(
|
|
218
|
-
|
|
218
|
+
17183,
|
|
219
219
|
"The default size of the font. We strongly recommend using a percentage value, for example: 125%."
|
|
220
220
|
)),
|
|
221
221
|
pattern: fontSizeRegex.source
|
|
@@ -227,34 +227,34 @@ const schema = {
|
|
|
227
227
|
iconDefinitions: {
|
|
228
228
|
type: "object",
|
|
229
229
|
description: ( localize(
|
|
230
|
-
|
|
230
|
+
17184,
|
|
231
231
|
"Description of all icons that can be used when associating files to icons."
|
|
232
232
|
)),
|
|
233
233
|
additionalProperties: {
|
|
234
234
|
type: "object",
|
|
235
|
-
description: ( localize(
|
|
235
|
+
description: ( localize(17185, "An icon definition. The object key is the ID of the definition.")),
|
|
236
236
|
properties: {
|
|
237
237
|
iconPath: {
|
|
238
238
|
type: "string",
|
|
239
239
|
description: ( localize(
|
|
240
|
-
|
|
240
|
+
17186,
|
|
241
241
|
"When using a SVG or PNG: The path to the image. The path is relative to the icon set file."
|
|
242
242
|
))
|
|
243
243
|
},
|
|
244
244
|
fontCharacter: {
|
|
245
245
|
type: "string",
|
|
246
|
-
description: ( localize(
|
|
246
|
+
description: ( localize(17187, "When using a glyph font: The character in the font to use."))
|
|
247
247
|
},
|
|
248
248
|
fontColor: {
|
|
249
249
|
type: "string",
|
|
250
250
|
format: "color-hex",
|
|
251
|
-
description: ( localize(
|
|
251
|
+
description: ( localize(17188, "When using a glyph font: The color to use.")),
|
|
252
252
|
pattern: fontColorRegex.source
|
|
253
253
|
},
|
|
254
254
|
fontSize: {
|
|
255
255
|
type: "string",
|
|
256
256
|
description: ( localize(
|
|
257
|
-
|
|
257
|
+
17189,
|
|
258
258
|
"When using a font: The font size in percentage to the text font. If not set, defaults to the size in the font definition."
|
|
259
259
|
)),
|
|
260
260
|
pattern: fontSizeRegex.source
|
|
@@ -262,7 +262,7 @@ const schema = {
|
|
|
262
262
|
fontId: {
|
|
263
263
|
type: "string",
|
|
264
264
|
description: ( localize(
|
|
265
|
-
|
|
265
|
+
17190,
|
|
266
266
|
"When using a font: The id of the font. If not set, defaults to the first font definition."
|
|
267
267
|
)),
|
|
268
268
|
pattern: fontIdRegex.source,
|
|
@@ -309,26 +309,26 @@ const schema = {
|
|
|
309
309
|
},
|
|
310
310
|
light: {
|
|
311
311
|
$ref: "#/definitions/associations",
|
|
312
|
-
description: ( localize(
|
|
312
|
+
description: ( localize(17191, "Optional associations for file icons in light color themes."))
|
|
313
313
|
},
|
|
314
314
|
highContrast: {
|
|
315
315
|
$ref: "#/definitions/associations",
|
|
316
316
|
description: ( localize(
|
|
317
|
-
|
|
317
|
+
17192,
|
|
318
318
|
"Optional associations for file icons in high contrast color themes."
|
|
319
319
|
))
|
|
320
320
|
},
|
|
321
321
|
hidesExplorerArrows: {
|
|
322
322
|
type: "boolean",
|
|
323
323
|
description: ( localize(
|
|
324
|
-
|
|
324
|
+
17193,
|
|
325
325
|
"Configures whether the file explorer's arrows should be hidden when this theme is active."
|
|
326
326
|
))
|
|
327
327
|
},
|
|
328
328
|
showLanguageModeIcons: {
|
|
329
329
|
type: "boolean",
|
|
330
330
|
description: ( localize(
|
|
331
|
-
|
|
331
|
+
17194,
|
|
332
332
|
"Configures whether the default language icons should be used if the theme does not define an icon for a language."
|
|
333
333
|
))
|
|
334
334
|
}
|
|
@@ -17,23 +17,23 @@ const schema = {
|
|
|
17
17
|
properties: {
|
|
18
18
|
id: {
|
|
19
19
|
type: "string",
|
|
20
|
-
description: ( localize(
|
|
20
|
+
description: ( localize(17208, "The ID of the font.")),
|
|
21
21
|
pattern: fontIdRegex.source,
|
|
22
22
|
patternErrorMessage: fontIdErrorMessage
|
|
23
23
|
},
|
|
24
24
|
src: {
|
|
25
25
|
type: "array",
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(17209, "The location of the font.")),
|
|
27
27
|
items: {
|
|
28
28
|
type: "object",
|
|
29
29
|
properties: {
|
|
30
30
|
path: {
|
|
31
31
|
type: "string",
|
|
32
|
-
description: ( localize(
|
|
32
|
+
description: ( localize(17210, "The font path, relative to the current product icon theme file."))
|
|
33
33
|
},
|
|
34
34
|
format: {
|
|
35
35
|
type: "string",
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(17211, "The format of the font.")),
|
|
37
37
|
enum: ["woff", "woff2", "truetype", "opentype", "embedded-opentype", "svg"]
|
|
38
38
|
}
|
|
39
39
|
},
|
|
@@ -43,7 +43,7 @@ const schema = {
|
|
|
43
43
|
weight: {
|
|
44
44
|
type: "string",
|
|
45
45
|
description: ( localize(
|
|
46
|
-
|
|
46
|
+
17212,
|
|
47
47
|
"The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values."
|
|
48
48
|
)),
|
|
49
49
|
anyOf: [{
|
|
@@ -56,7 +56,7 @@ const schema = {
|
|
|
56
56
|
style: {
|
|
57
57
|
type: "string",
|
|
58
58
|
description: ( localize(
|
|
59
|
-
|
|
59
|
+
17213,
|
|
60
60
|
"The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values."
|
|
61
61
|
)),
|
|
62
62
|
anyOf: [{
|
|
@@ -71,7 +71,7 @@ const schema = {
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
iconDefinitions: {
|
|
74
|
-
description: ( localize(
|
|
74
|
+
description: ( localize(17214, "Association of icon name to a font character.")),
|
|
75
75
|
$ref: iconsSchemaId
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -32,7 +32,7 @@ const COLOR_THEME_CONFIGURATION_SETTINGS_TAG = "colorThemeConfiguration";
|
|
|
32
32
|
const colorThemeSettingSchema = {
|
|
33
33
|
type: "string",
|
|
34
34
|
markdownDescription: ( localize(
|
|
35
|
-
|
|
35
|
+
17215,
|
|
36
36
|
"Specifies the color theme used in the workbench when {0} is not enabled.",
|
|
37
37
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
38
38
|
)),
|
|
@@ -41,12 +41,12 @@ const colorThemeSettingSchema = {
|
|
|
41
41
|
enum: colorThemeSettingEnum,
|
|
42
42
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
43
43
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
44
|
-
errorMessage: ( localize(
|
|
44
|
+
errorMessage: ( localize(17216, "Theme is unknown or not installed."))
|
|
45
45
|
};
|
|
46
46
|
const preferredDarkThemeSettingSchema = {
|
|
47
47
|
type: "string",
|
|
48
48
|
markdownDescription: ( localize(
|
|
49
|
-
|
|
49
|
+
17217,
|
|
50
50
|
"Specifies the color theme when system color mode is dark and {0} is enabled.",
|
|
51
51
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
52
52
|
)),
|
|
@@ -55,12 +55,12 @@ const preferredDarkThemeSettingSchema = {
|
|
|
55
55
|
enum: colorThemeSettingEnum,
|
|
56
56
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
57
57
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
58
|
-
errorMessage: ( localize(
|
|
58
|
+
errorMessage: ( localize(17216, "Theme is unknown or not installed."))
|
|
59
59
|
};
|
|
60
60
|
const preferredLightThemeSettingSchema = {
|
|
61
61
|
type: "string",
|
|
62
62
|
markdownDescription: ( localize(
|
|
63
|
-
|
|
63
|
+
17218,
|
|
64
64
|
"Specifies the color theme when system color mode is light and {0} is enabled.",
|
|
65
65
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
66
66
|
)),
|
|
@@ -69,12 +69,12 @@ const preferredLightThemeSettingSchema = {
|
|
|
69
69
|
enum: colorThemeSettingEnum,
|
|
70
70
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
71
71
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
72
|
-
errorMessage: ( localize(
|
|
72
|
+
errorMessage: ( localize(17216, "Theme is unknown or not installed."))
|
|
73
73
|
};
|
|
74
74
|
const preferredHCDarkThemeSettingSchema = {
|
|
75
75
|
type: "string",
|
|
76
76
|
markdownDescription: ( localize(
|
|
77
|
-
|
|
77
|
+
17219,
|
|
78
78
|
"Specifies the color theme when in high contrast dark mode and {0} is enabled.",
|
|
79
79
|
formatSettingAsLink(ThemeSettings.DETECT_HC)
|
|
80
80
|
)),
|
|
@@ -83,12 +83,12 @@ const preferredHCDarkThemeSettingSchema = {
|
|
|
83
83
|
enum: colorThemeSettingEnum,
|
|
84
84
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
85
85
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
86
|
-
errorMessage: ( localize(
|
|
86
|
+
errorMessage: ( localize(17216, "Theme is unknown or not installed."))
|
|
87
87
|
};
|
|
88
88
|
const preferredHCLightThemeSettingSchema = {
|
|
89
89
|
type: "string",
|
|
90
90
|
markdownDescription: ( localize(
|
|
91
|
-
|
|
91
|
+
17220,
|
|
92
92
|
"Specifies the color theme when in high contrast light mode and {0} is enabled.",
|
|
93
93
|
formatSettingAsLink(ThemeSettings.DETECT_HC)
|
|
94
94
|
)),
|
|
@@ -97,12 +97,12 @@ const preferredHCLightThemeSettingSchema = {
|
|
|
97
97
|
enum: colorThemeSettingEnum,
|
|
98
98
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
99
99
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
100
|
-
errorMessage: ( localize(
|
|
100
|
+
errorMessage: ( localize(17216, "Theme is unknown or not installed."))
|
|
101
101
|
};
|
|
102
102
|
const detectColorSchemeSettingSchema = {
|
|
103
103
|
type: "boolean",
|
|
104
104
|
markdownDescription: ( localize(
|
|
105
|
-
|
|
105
|
+
17221,
|
|
106
106
|
"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}.",
|
|
107
107
|
formatSettingAsLink(ThemeSettings.PREFERRED_DARK_THEME),
|
|
108
108
|
formatSettingAsLink(ThemeSettings.PREFERRED_LIGHT_THEME)
|
|
@@ -117,7 +117,7 @@ const detectColorSchemeSettingSchema = {
|
|
|
117
117
|
};
|
|
118
118
|
const colorCustomizationsSchema = {
|
|
119
119
|
type: "object",
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(17222, "Overrides colors from the currently selected color theme.")),
|
|
121
121
|
allOf: [{
|
|
122
122
|
$ref: workbenchColorsSchemaId
|
|
123
123
|
}],
|
|
@@ -130,28 +130,28 @@ const fileIconThemeSettingSchema = {
|
|
|
130
130
|
type: ["string", "null"],
|
|
131
131
|
default: ThemeSettingDefaults.FILE_ICON_THEME,
|
|
132
132
|
description: ( localize(
|
|
133
|
-
|
|
133
|
+
17223,
|
|
134
134
|
"Specifies the file icon theme used in the workbench or 'null' to not show any file icons."
|
|
135
135
|
)),
|
|
136
136
|
enum: [null],
|
|
137
|
-
enumItemLabels: [( localize(
|
|
138
|
-
enumDescriptions: [( localize(
|
|
139
|
-
errorMessage: ( localize(
|
|
137
|
+
enumItemLabels: [( localize(17224, "None"))],
|
|
138
|
+
enumDescriptions: [( localize(17225, "No file icons"))],
|
|
139
|
+
errorMessage: ( localize(17226, "File icon theme is unknown or not installed."))
|
|
140
140
|
};
|
|
141
141
|
const productIconThemeSettingSchema = {
|
|
142
142
|
type: ["string", "null"],
|
|
143
143
|
default: ThemeSettingDefaults.PRODUCT_ICON_THEME,
|
|
144
|
-
description: ( localize(
|
|
144
|
+
description: ( localize(17227, "Specifies the product icon theme used.")),
|
|
145
145
|
enum: [ThemeSettingDefaults.PRODUCT_ICON_THEME],
|
|
146
|
-
enumItemLabels: [( localize(
|
|
147
|
-
enumDescriptions: [( localize(
|
|
148
|
-
errorMessage: ( localize(
|
|
146
|
+
enumItemLabels: [( localize(17228, "Default"))],
|
|
147
|
+
enumDescriptions: [( localize(17229, "Default"))],
|
|
148
|
+
errorMessage: ( localize(17230, "Product icon theme is unknown or not installed."))
|
|
149
149
|
};
|
|
150
150
|
const detectHCSchemeSettingSchema = {
|
|
151
151
|
type: "boolean",
|
|
152
152
|
default: true,
|
|
153
153
|
markdownDescription: ( localize(
|
|
154
|
-
|
|
154
|
+
17231,
|
|
155
155
|
"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}.",
|
|
156
156
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_DARK_THEME),
|
|
157
157
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_LIGHT_THEME)
|
|
@@ -195,31 +195,31 @@ const themeSpecificSettingKey = "^\\[[^\\]]*(\\]\\s*\\[[^\\]]*)*\\]$";
|
|
|
195
195
|
const tokenColorSchema = {
|
|
196
196
|
type: "object",
|
|
197
197
|
properties: {
|
|
198
|
-
comments: tokenGroupSettings(( localize(
|
|
199
|
-
strings: tokenGroupSettings(( localize(
|
|
200
|
-
keywords: tokenGroupSettings(( localize(
|
|
201
|
-
numbers: tokenGroupSettings(( localize(
|
|
202
|
-
types: tokenGroupSettings(( localize(
|
|
198
|
+
comments: tokenGroupSettings(( localize(17232, "Sets the colors and styles for comments"))),
|
|
199
|
+
strings: tokenGroupSettings(( localize(17233, "Sets the colors and styles for strings literals."))),
|
|
200
|
+
keywords: tokenGroupSettings(( localize(17234, "Sets the colors and styles for keywords."))),
|
|
201
|
+
numbers: tokenGroupSettings(( localize(17235, "Sets the colors and styles for number literals."))),
|
|
202
|
+
types: tokenGroupSettings(( localize(17236, "Sets the colors and styles for type declarations and references."))),
|
|
203
203
|
functions: tokenGroupSettings(( localize(
|
|
204
|
-
|
|
204
|
+
17237,
|
|
205
205
|
"Sets the colors and styles for functions declarations and references."
|
|
206
206
|
))),
|
|
207
207
|
variables: tokenGroupSettings(( localize(
|
|
208
|
-
|
|
208
|
+
17238,
|
|
209
209
|
"Sets the colors and styles for variables declarations and references."
|
|
210
210
|
))),
|
|
211
211
|
textMateRules: {
|
|
212
|
-
description: ( localize(
|
|
212
|
+
description: ( localize(17239, "Sets colors and styles using textmate theming rules (advanced).")),
|
|
213
213
|
$ref: textmateColorsSchemaId
|
|
214
214
|
},
|
|
215
215
|
semanticHighlighting: {
|
|
216
|
-
description: ( localize(
|
|
216
|
+
description: ( localize(17240, "Whether semantic highlighting should be enabled for this theme.")),
|
|
217
217
|
deprecationMessage: ( localize(
|
|
218
|
-
|
|
218
|
+
17241,
|
|
219
219
|
"Use `enabled` in `editor.semanticTokenColorCustomizations` setting instead."
|
|
220
220
|
)),
|
|
221
221
|
markdownDeprecationMessage: ( localize(
|
|
222
|
-
|
|
222
|
+
17242,
|
|
223
223
|
"Use `enabled` in {0} setting instead.",
|
|
224
224
|
formatSettingAsLink("editor.semanticTokenColorCustomizations")
|
|
225
225
|
)),
|
|
@@ -230,7 +230,7 @@ const tokenColorSchema = {
|
|
|
230
230
|
};
|
|
231
231
|
const tokenColorCustomizationSchema = {
|
|
232
232
|
description: ( localize(
|
|
233
|
-
|
|
233
|
+
17243,
|
|
234
234
|
"Overrides editor syntax colors and font style from the currently selected color theme."
|
|
235
235
|
)),
|
|
236
236
|
default: {},
|
|
@@ -247,14 +247,14 @@ const semanticTokenColorSchema = {
|
|
|
247
247
|
enabled: {
|
|
248
248
|
type: "boolean",
|
|
249
249
|
description: ( localize(
|
|
250
|
-
|
|
250
|
+
17244,
|
|
251
251
|
"Whether semantic highlighting is enabled or disabled for this theme"
|
|
252
252
|
)),
|
|
253
253
|
suggestSortText: "0_enabled"
|
|
254
254
|
},
|
|
255
255
|
rules: {
|
|
256
256
|
$ref: tokenStylingSchemaId,
|
|
257
|
-
description: ( localize(
|
|
257
|
+
description: ( localize(17245, "Semantic token styling rules for this theme.")),
|
|
258
258
|
suggestSortText: "0_rules"
|
|
259
259
|
}
|
|
260
260
|
},
|
|
@@ -262,7 +262,7 @@ const semanticTokenColorSchema = {
|
|
|
262
262
|
};
|
|
263
263
|
const semanticTokenColorCustomizationSchema = {
|
|
264
264
|
description: ( localize(
|
|
265
|
-
|
|
265
|
+
17246,
|
|
266
266
|
"Overrides editor semantic token color and styles from the currently selected color theme."
|
|
267
267
|
)),
|
|
268
268
|
default: {},
|
|
@@ -16,7 +16,7 @@ function registerColorThemeExtensionPoint() {
|
|
|
16
16
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
17
17
|
extensionPoint: "themes",
|
|
18
18
|
jsonSchema: {
|
|
19
|
-
description: ( localize(
|
|
19
|
+
description: ( localize(17247, "Contributes textmate color themes.")),
|
|
20
20
|
type: "array",
|
|
21
21
|
items: {
|
|
22
22
|
type: "object",
|
|
@@ -30,16 +30,16 @@ function registerColorThemeExtensionPoint() {
|
|
|
30
30
|
}],
|
|
31
31
|
properties: {
|
|
32
32
|
id: {
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(17248, "Id of the color theme as used in the user settings.")),
|
|
34
34
|
type: "string"
|
|
35
35
|
},
|
|
36
36
|
label: {
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(17249, "Label of the color theme as shown in the UI.")),
|
|
38
38
|
type: "string"
|
|
39
39
|
},
|
|
40
40
|
uiTheme: {
|
|
41
41
|
markdownDescription: ( localize(
|
|
42
|
-
|
|
42
|
+
17250,
|
|
43
43
|
"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."
|
|
44
44
|
)),
|
|
45
45
|
enum: [
|
|
@@ -51,7 +51,7 @@ function registerColorThemeExtensionPoint() {
|
|
|
51
51
|
},
|
|
52
52
|
path: {
|
|
53
53
|
markdownDescription: ( localize(
|
|
54
|
-
|
|
54
|
+
17251,
|
|
55
55
|
"Path of the tmTheme file. The path is relative to the extension folder and is typically `./colorthemes/awesome-color-theme.json`."
|
|
56
56
|
)),
|
|
57
57
|
type: "string"
|
|
@@ -66,7 +66,7 @@ function registerFileIconThemeExtensionPoint() {
|
|
|
66
66
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
67
67
|
extensionPoint: "iconThemes",
|
|
68
68
|
jsonSchema: {
|
|
69
|
-
description: ( localize(
|
|
69
|
+
description: ( localize(17252, "Contributes file icon themes.")),
|
|
70
70
|
type: "array",
|
|
71
71
|
items: {
|
|
72
72
|
type: "object",
|
|
@@ -79,16 +79,16 @@ function registerFileIconThemeExtensionPoint() {
|
|
|
79
79
|
}],
|
|
80
80
|
properties: {
|
|
81
81
|
id: {
|
|
82
|
-
description: ( localize(
|
|
82
|
+
description: ( localize(17253, "Id of the file icon theme as used in the user settings.")),
|
|
83
83
|
type: "string"
|
|
84
84
|
},
|
|
85
85
|
label: {
|
|
86
|
-
description: ( localize(
|
|
86
|
+
description: ( localize(17254, "Label of the file icon theme as shown in the UI.")),
|
|
87
87
|
type: "string"
|
|
88
88
|
},
|
|
89
89
|
path: {
|
|
90
90
|
description: ( localize(
|
|
91
|
-
|
|
91
|
+
17255,
|
|
92
92
|
"Path of the file icon theme definition file. The path is relative to the extension folder and is typically './fileicons/awesome-icon-theme.json'."
|
|
93
93
|
)),
|
|
94
94
|
type: "string"
|
|
@@ -103,7 +103,7 @@ function registerProductIconThemeExtensionPoint() {
|
|
|
103
103
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
104
104
|
extensionPoint: "productIconThemes",
|
|
105
105
|
jsonSchema: {
|
|
106
|
-
description: ( localize(
|
|
106
|
+
description: ( localize(17256, "Contributes product icon themes.")),
|
|
107
107
|
type: "array",
|
|
108
108
|
items: {
|
|
109
109
|
type: "object",
|
|
@@ -116,16 +116,16 @@ function registerProductIconThemeExtensionPoint() {
|
|
|
116
116
|
}],
|
|
117
117
|
properties: {
|
|
118
118
|
id: {
|
|
119
|
-
description: ( localize(
|
|
119
|
+
description: ( localize(17257, "Id of the product icon theme as used in the user settings.")),
|
|
120
120
|
type: "string"
|
|
121
121
|
},
|
|
122
122
|
label: {
|
|
123
|
-
description: ( localize(
|
|
123
|
+
description: ( localize(17258, "Label of the product icon theme as shown in the UI.")),
|
|
124
124
|
type: "string"
|
|
125
125
|
},
|
|
126
126
|
path: {
|
|
127
127
|
description: ( localize(
|
|
128
|
-
|
|
128
|
+
17259,
|
|
129
129
|
"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'."
|
|
130
130
|
)),
|
|
131
131
|
type: "string"
|
|
@@ -147,19 +147,19 @@ class ThemeDataRenderer extends Disposable {
|
|
|
147
147
|
render(manifest) {
|
|
148
148
|
const markdown = ( new MarkdownString());
|
|
149
149
|
if (manifest.contributes?.themes) {
|
|
150
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
150
|
+
markdown.appendMarkdown(`### ${( localize(17260, "Color Themes"))}\n\n`);
|
|
151
151
|
for (const theme of manifest.contributes.themes) {
|
|
152
152
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
if (manifest.contributes?.iconThemes) {
|
|
156
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
156
|
+
markdown.appendMarkdown(`### ${( localize(17261, "File Icon Themes"))}\n\n`);
|
|
157
157
|
for (const theme of manifest.contributes.iconThemes) {
|
|
158
158
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
if (manifest.contributes?.productIconThemes) {
|
|
162
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
162
|
+
markdown.appendMarkdown(`### ${( localize(17262, "Product Icon Themes"))}\n\n`);
|
|
163
163
|
for (const theme of manifest.contributes.productIconThemes) {
|
|
164
164
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
165
165
|
}
|
|
@@ -172,7 +172,7 @@ class ThemeDataRenderer extends Disposable {
|
|
|
172
172
|
}
|
|
173
173
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
174
174
|
id: "themes",
|
|
175
|
-
label: ( localize(
|
|
175
|
+
label: ( localize(17263, "Themes")),
|
|
176
176
|
access: {
|
|
177
177
|
canToggle: false
|
|
178
178
|
},
|
|
@@ -234,13 +234,13 @@ class ThemeRegistry {
|
|
|
234
234
|
log
|
|
235
235
|
) {
|
|
236
236
|
if (!Array.isArray(themeContributions)) {
|
|
237
|
-
log?.error(( localize(
|
|
237
|
+
log?.error(( localize(17264, "Extension point `{0}` must be an array.", this.themesExtPoint.name)));
|
|
238
238
|
return resultingThemes;
|
|
239
239
|
}
|
|
240
240
|
themeContributions.forEach(theme => {
|
|
241
241
|
if (!theme.path || !isString(theme.path)) {
|
|
242
242
|
log?.error(( localize(
|
|
243
|
-
|
|
243
|
+
17265,
|
|
244
244
|
"Expected string in `contributes.{0}.path`. Provided value: {1}",
|
|
245
245
|
this.themesExtPoint.name,
|
|
246
246
|
String(theme.path)
|
|
@@ -249,7 +249,7 @@ class ThemeRegistry {
|
|
|
249
249
|
}
|
|
250
250
|
if (this.idRequired && (!theme.id || !isString(theme.id))) {
|
|
251
251
|
log?.error(( localize(
|
|
252
|
-
|
|
252
|
+
17266,
|
|
253
253
|
"Expected string in `contributes.{0}.id`. Provided value: {1}",
|
|
254
254
|
this.themesExtPoint.name,
|
|
255
255
|
String(theme.id)
|
|
@@ -259,7 +259,7 @@ class ThemeRegistry {
|
|
|
259
259
|
const themeLocation = joinPath(extensionLocation, theme.path);
|
|
260
260
|
if (!isEqualOrParent(themeLocation, extensionLocation)) {
|
|
261
261
|
log?.warn(( localize(
|
|
262
|
-
|
|
262
|
+
17267,
|
|
263
263
|
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
264
264
|
this.themesExtPoint.name,
|
|
265
265
|
themeLocation.path,
|