@codingame/monaco-vscode-theme-service-override 8.0.0 → 8.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-theme-service-override",
3
- "version": "8.0.0",
3
+ "version": "8.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@8.0.0",
30
- "@codingame/monaco-vscode-files-service-override": "8.0.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@8.0.2",
30
+ "@codingame/monaco-vscode-files-service-override": "8.0.2"
31
31
  }
32
32
  }
@@ -63,7 +63,7 @@ import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
63
63
  import Severity$1 from 'vscode/vscode/vs/base/common/severity';
64
64
 
65
65
  var DefaultThemeUpdatedNotificationContribution_1;
66
- const manageExtensionIcon = registerIcon('theme-selection-manage-extension', Codicon.gear, ( localize(2598, 'Icon for the \'Manage\' action in the theme selection quick pick.')));
66
+ const manageExtensionIcon = registerIcon('theme-selection-manage-extension', Codicon.gear, ( localize(3076, 'Icon for the \'Manage\' action in the theme selection quick pick.')));
67
67
  var ConfigureItem;
68
68
  ( ((function(ConfigureItem) {
69
69
  ConfigureItem["BROWSE_GALLERY"] = "marketplace";
@@ -171,7 +171,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
171
171
  quickpick.matchOnDescription = true;
172
172
  quickpick.buttons = [this.quickInputService.backButton];
173
173
  quickpick.title = 'Marketplace Themes';
174
- quickpick.placeholder = ( localize(2599, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
174
+ quickpick.placeholder = ( localize(3077, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
175
175
  quickpick.canSelectMany = false;
176
176
  quickpick.onDidChangeValue(() => this.trigger(quickpick.value));
177
177
  quickpick.onDidAccept(async (_) => {
@@ -224,7 +224,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
224
224
  items = items.concat({ label: '$(sync~spin) Searching for themes...', id: undefined, alwaysShow: true });
225
225
  }
226
226
  else if (items.length === 0 && this._searchError) {
227
- items = [{ label: `$(error) ${( localize(2600, 'Error while searching for themes: {0}', this._searchError))}`, id: undefined, alwaysShow: true }];
227
+ items = [{ label: `$(error) ${( localize(3078, 'Error while searching for themes: {0}', this._searchError))}`, id: undefined, alwaysShow: true }];
228
228
  }
229
229
  const activeItemId = quickpick.activeItems[0]?.id;
230
230
  const newActiveItem = activeItemId ? items.find(i => isItem(i) && i.id === activeItemId) : undefined;
@@ -242,12 +242,12 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
242
242
  openExtensionViewlet(this.paneCompositeService, `@id:${galleryExtension.identifier.id}`);
243
243
  const result = await this.dialogService.confirm({
244
244
  message: ( localize(
245
- 2601,
245
+ 3079,
246
246
  "This will install extension '{0}' published by '{1}'. Do you want to continue?",
247
247
  galleryExtension.displayName,
248
248
  galleryExtension.publisherDisplayName
249
249
  )),
250
- primaryButton: ( localize(2602, "OK"))
250
+ primaryButton: ( localize(3080, "OK"))
251
251
  });
252
252
  if (!result.confirmed) {
253
253
  return false;
@@ -255,7 +255,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
255
255
  try {
256
256
  await this.progressService.withProgress({
257
257
  location: ProgressLocation.Notification,
258
- title: ( localize(2603, "Installing Extension {0}...", galleryExtension.displayName))
258
+ title: ( localize(3081, "Installing Extension {0}...", galleryExtension.displayName))
259
259
  }, async () => {
260
260
  await this.extensionManagementService.installFromGallery(galleryExtension, {
261
261
  isMachineScoped: false,
@@ -403,7 +403,7 @@ registerAction2(class extends Action2 {
403
403
  constructor() {
404
404
  super({
405
405
  id: SelectColorThemeCommandId,
406
- title: ( localize2(2604, 'Color Theme')),
406
+ title: ( localize2(3082, 'Color Theme')),
407
407
  category: Categories.Preferences,
408
408
  f1: true,
409
409
  keybinding: {
@@ -414,12 +414,12 @@ registerAction2(class extends Action2 {
414
414
  }
415
415
  getTitle(colorScheme) {
416
416
  switch (colorScheme) {
417
- case ColorScheme.DARK: return ( localize(2605, "Select Color Theme for System Dark Mode"));
418
- case ColorScheme.LIGHT: return ( localize(2606, "Select Color Theme for System Light Mode"));
419
- case ColorScheme.HIGH_CONTRAST_DARK: return ( localize(2607, "Select Color Theme for High Contrast Dark Mode"));
420
- case ColorScheme.HIGH_CONTRAST_LIGHT: return ( localize(2608, "Select Color Theme for High Contrast Light Mode"));
417
+ case ColorScheme.DARK: return ( localize(3083, "Select Color Theme for System Dark Mode"));
418
+ case ColorScheme.LIGHT: return ( localize(3084, "Select Color Theme for System Light Mode"));
419
+ case ColorScheme.HIGH_CONTRAST_DARK: return ( localize(3085, "Select Color Theme for High Contrast Dark Mode"));
420
+ case ColorScheme.HIGH_CONTRAST_LIGHT: return ( localize(3086, "Select Color Theme for High Contrast Light Mode"));
421
421
  default:
422
- return ( localize(2609, "Select Color Theme (detect system color mode disabled)"));
422
+ return ( localize(3087, "Select Color Theme (detect system color mode disabled)"));
423
423
  }
424
424
  }
425
425
  async run(accessor) {
@@ -429,7 +429,7 @@ registerAction2(class extends Action2 {
429
429
  let modeConfigureToggle;
430
430
  if (preferredColorScheme) {
431
431
  modeConfigureToggle = ( (new Toggle({
432
- title: ( localize(2610, 'Detect system color mode enabled. Click to configure.')),
432
+ title: ( localize(3088, 'Detect system color mode enabled. Click to configure.')),
433
433
  icon: Codicon.colorMode,
434
434
  isChecked: false,
435
435
  ...defaultToggleStyles
@@ -437,15 +437,15 @@ registerAction2(class extends Action2 {
437
437
  }
438
438
  else {
439
439
  modeConfigureToggle = ( (new Toggle({
440
- title: ( localize(2611, 'Detect system color mode disabled. Click to configure.')),
440
+ title: ( localize(3089, 'Detect system color mode disabled. Click to configure.')),
441
441
  icon: Codicon.colorMode,
442
442
  isChecked: false,
443
443
  ...defaultToggleStyles
444
444
  })));
445
445
  }
446
446
  const options = {
447
- installMessage: ( localize(2612, "Install Additional Color Themes...")),
448
- browseMessage: '$(plus) ' + ( localize(2613, "Browse Additional Color Themes...")),
447
+ installMessage: ( localize(3090, "Install Additional Color Themes...")),
448
+ browseMessage: '$(plus) ' + ( localize(3091, "Browse Additional Color Themes...")),
449
449
  placeholderMessage: this.getTitle(preferredColorScheme),
450
450
  marketplaceTag: 'category:themes',
451
451
  toggles: [modeConfigureToggle],
@@ -460,9 +460,9 @@ registerAction2(class extends Action2 {
460
460
  const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
461
461
  const themes = await themeService.getColorThemes();
462
462
  const currentTheme = themeService.getColorTheme();
463
- const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(2614, "light themes")));
464
- const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(2615, "dark themes")));
465
- const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(2616, "high contrast themes")));
463
+ const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(3092, "light themes")));
464
+ const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(3093, "dark themes")));
465
+ const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(3094, "high contrast themes")));
466
466
  let picks;
467
467
  switch (preferredColorScheme) {
468
468
  case ColorScheme.DARK:
@@ -485,7 +485,7 @@ registerAction2(class extends Action2 {
485
485
  constructor() {
486
486
  super({
487
487
  id: SelectFileIconThemeCommandId,
488
- title: ( localize2(2617, 'File Icon Theme')),
488
+ title: ( localize2(3095, 'File Icon Theme')),
489
489
  category: Categories.Preferences,
490
490
  f1: true
491
491
  });
@@ -493,8 +493,8 @@ registerAction2(class extends Action2 {
493
493
  async run(accessor) {
494
494
  const themeService = accessor.get(IWorkbenchThemeService);
495
495
  const options = {
496
- installMessage: ( localize(2618, "Install Additional File Icon Themes...")),
497
- placeholderMessage: ( localize(2619, "Select File Icon Theme (Up/Down Keys to Preview)")),
496
+ installMessage: ( localize(3096, "Install Additional File Icon Themes...")),
497
+ placeholderMessage: ( localize(3097, "Select File Icon Theme (Up/Down Keys to Preview)")),
498
498
  marketplaceTag: 'tag:icon-theme'
499
499
  };
500
500
  const setTheme = (theme, settingsTarget) => themeService.setFileIconTheme(theme, settingsTarget);
@@ -502,8 +502,8 @@ registerAction2(class extends Action2 {
502
502
  const instantiationService = accessor.get(IInstantiationService);
503
503
  const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
504
504
  const picks = [
505
- { type: 'separator', label: ( localize(2620, 'file icon themes')) },
506
- { id: '', theme: FileIconThemeData.noIconTheme, label: ( localize(2621, 'None')), description: ( localize(2622, 'Disable File Icons')) },
505
+ { type: 'separator', label: ( localize(3098, 'file icon themes')) },
506
+ { id: '', theme: FileIconThemeData.noIconTheme, label: ( localize(3099, 'None')), description: ( localize(3100, 'Disable File Icons')) },
507
507
  ...toEntries(await themeService.getFileIconThemes()),
508
508
  ];
509
509
  await picker.openQuickPick(picks, themeService.getFileIconTheme());
@@ -514,7 +514,7 @@ registerAction2(class extends Action2 {
514
514
  constructor() {
515
515
  super({
516
516
  id: SelectProductIconThemeCommandId,
517
- title: ( localize2(2623, 'Product Icon Theme')),
517
+ title: ( localize2(3101, 'Product Icon Theme')),
518
518
  category: Categories.Preferences,
519
519
  f1: true
520
520
  });
@@ -522,9 +522,9 @@ registerAction2(class extends Action2 {
522
522
  async run(accessor) {
523
523
  const themeService = accessor.get(IWorkbenchThemeService);
524
524
  const options = {
525
- installMessage: ( localize(2624, "Install Additional Product Icon Themes...")),
526
- browseMessage: '$(plus) ' + ( localize(2625, "Browse Additional Product Icon Themes...")),
527
- placeholderMessage: ( localize(2626, "Select Product Icon Theme (Up/Down Keys to Preview)")),
525
+ installMessage: ( localize(3102, "Install Additional Product Icon Themes...")),
526
+ browseMessage: '$(plus) ' + ( localize(3103, "Browse Additional Product Icon Themes...")),
527
+ placeholderMessage: ( localize(3104, "Select Product Icon Theme (Up/Down Keys to Preview)")),
528
528
  marketplaceTag: 'tag:product-icon-theme'
529
529
  };
530
530
  const setTheme = (theme, settingsTarget) => themeService.setProductIconTheme(theme, settingsTarget);
@@ -532,8 +532,8 @@ registerAction2(class extends Action2 {
532
532
  const instantiationService = accessor.get(IInstantiationService);
533
533
  const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
534
534
  const picks = [
535
- { type: 'separator', label: ( localize(2627, 'product icon themes')) },
536
- { id: DEFAULT_PRODUCT_ICON_THEME_ID, theme: ProductIconThemeData.defaultTheme, label: ( localize(2628, 'Default')) },
535
+ { type: 'separator', label: ( localize(3105, 'product icon themes')) },
536
+ { id: DEFAULT_PRODUCT_ICON_THEME_ID, theme: ProductIconThemeData.defaultTheme, label: ( localize(3106, 'Default')) },
537
537
  ...toEntries(await themeService.getProductIconThemes()),
538
538
  ];
539
539
  await picker.openQuickPick(picks, themeService.getProductIconTheme());
@@ -599,13 +599,13 @@ function toEntries(themes, label) {
599
599
  }
600
600
  const configureButton = {
601
601
  iconClass: ThemeIcon.asClassName(manageExtensionIcon),
602
- tooltip: ( localize(2629, "Manage Extension")),
602
+ tooltip: ( localize(3107, "Manage Extension")),
603
603
  };
604
604
  registerAction2(class extends Action2 {
605
605
  constructor() {
606
606
  super({
607
607
  id: 'workbench.action.generateColorTheme',
608
- title: ( localize2(2630, 'Generate Color Theme From Current Settings')),
608
+ title: ( localize2(3108, 'Generate Color Theme From Current Settings')),
609
609
  category: Categories.Developer,
610
610
  f1: true
611
611
  });
@@ -655,7 +655,7 @@ registerAction2(class extends Action2 {
655
655
  constructor() {
656
656
  super({
657
657
  id: toggleLightDarkThemesCommandId,
658
- title: ( localize2(2631, 'Toggle between Light/Dark Themes')),
658
+ title: ( localize2(3109, 'Toggle between Light/Dark Themes')),
659
659
  category: Categories.Preferences,
660
660
  f1: true,
661
661
  });
@@ -667,13 +667,13 @@ registerAction2(class extends Action2 {
667
667
  const preferencesService = accessor.get(IPreferencesService);
668
668
  if (configurationService.getValue(ThemeSettings.DETECT_COLOR_SCHEME)) {
669
669
  const message = ( localize(
670
- 2632,
670
+ 3110,
671
671
  "Cannot toggle between light and dark themes when `{0}` is enabled in settings.",
672
672
  ThemeSettings.DETECT_COLOR_SCHEME
673
673
  ));
674
674
  notificationService.prompt(Severity$1.Info, message, [
675
675
  {
676
- label: ( localize(2633, "Open Settings")),
676
+ label: ( localize(3111, "Open Settings")),
677
677
  run: () => {
678
678
  return preferencesService.openUserSettings({ query: ThemeSettings.DETECT_COLOR_SCHEME });
679
679
  }
@@ -711,7 +711,7 @@ registerAction2(class extends Action2 {
711
711
  constructor() {
712
712
  super({
713
713
  id: browseColorThemesInMarketplaceCommandId,
714
- title: ( localize2(2634, 'Browse Color Themes in Marketplace')),
714
+ title: ( localize2(3112, 'Browse Color Themes in Marketplace')),
715
715
  category: Categories.Preferences,
716
716
  f1: true,
717
717
  });
@@ -747,13 +747,13 @@ registerAction2(class extends Action2 {
747
747
  });
748
748
  const ThemesSubMenu = ( (new MenuId('ThemesSubMenu')));
749
749
  MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
750
- title: ( localize(2635, "Themes")),
750
+ title: ( localize(3113, "Themes")),
751
751
  submenu: ThemesSubMenu,
752
752
  group: '2_configuration',
753
753
  order: 7
754
754
  });
755
755
  MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
756
- title: ( localize(2636, "&&Theme")),
756
+ title: ( localize(3114, "&&Theme")),
757
757
  submenu: ThemesSubMenu,
758
758
  group: '2_configuration',
759
759
  order: 7
@@ -761,21 +761,21 @@ MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
761
761
  MenuRegistry.appendMenuItem(ThemesSubMenu, {
762
762
  command: {
763
763
  id: SelectColorThemeCommandId,
764
- title: ( localize(2636, 'Color Theme'))
764
+ title: ( localize(3082, 'Color Theme'))
765
765
  },
766
766
  order: 1
767
767
  });
768
768
  MenuRegistry.appendMenuItem(ThemesSubMenu, {
769
769
  command: {
770
770
  id: SelectFileIconThemeCommandId,
771
- title: ( localize(2637, "File Icon Theme"))
771
+ title: ( localize(3115, "File Icon Theme"))
772
772
  },
773
773
  order: 2
774
774
  });
775
775
  MenuRegistry.appendMenuItem(ThemesSubMenu, {
776
776
  command: {
777
777
  id: SelectProductIconThemeCommandId,
778
- title: ( localize(2638, "Product Icon Theme"))
778
+ title: ( localize(3116, "Product Icon Theme"))
779
779
  },
780
780
  order: 3
781
781
  });
@@ -817,20 +817,20 @@ let DefaultThemeUpdatedNotificationContribution = class DefaultThemeUpdatedNotif
817
817
  if (newTheme) {
818
818
  const choices = [
819
819
  {
820
- label: ( localize(2639, "Keep New Theme")),
820
+ label: ( localize(3117, "Keep New Theme")),
821
821
  run: () => {
822
822
  this._writeTelemetry('keepNew');
823
823
  }
824
824
  },
825
825
  {
826
- label: ( localize(2640, "Browse Themes")),
826
+ label: ( localize(3118, "Browse Themes")),
827
827
  run: () => {
828
828
  this._writeTelemetry('browse');
829
829
  this._commandService.executeCommand(SelectColorThemeCommandId);
830
830
  }
831
831
  },
832
832
  {
833
- label: ( localize(2641, "Revert")),
833
+ label: ( localize(3119, "Revert")),
834
834
  run: async () => {
835
835
  this._writeTelemetry('keepOld');
836
836
  const oldSettingsId = usingLight ? ThemeSettingDefaults.COLOR_THEME_LIGHT_OLD : ThemeSettingDefaults.COLOR_THEME_DARK_OLD;
@@ -842,7 +842,7 @@ let DefaultThemeUpdatedNotificationContribution = class DefaultThemeUpdatedNotif
842
842
  }
843
843
  ];
844
844
  await this._notificationService.prompt(Severity$1.Info, ( localize(
845
- 2642,
845
+ 3120,
846
846
  "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.",
847
847
  newTheme.label
848
848
  )), choices, {
@@ -855,20 +855,20 @@ let DefaultThemeUpdatedNotificationContribution = class DefaultThemeUpdatedNotif
855
855
  const theme = (await this._workbenchThemeService.getColorThemes()).find(theme => theme.settingsId === newThemeSettingsId);
856
856
  if (theme) {
857
857
  const choices = [{
858
- label: ( localize(2643, "Try New Theme")),
858
+ label: ( localize(3121, "Try New Theme")),
859
859
  run: () => {
860
860
  this._writeTelemetry('tryNew');
861
861
  this._workbenchThemeService.setColorTheme(theme, 'auto');
862
862
  }
863
863
  },
864
864
  {
865
- label: ( localize(2644, "Cancel")),
865
+ label: ( localize(3122, "Cancel")),
866
866
  run: () => {
867
867
  this._writeTelemetry('cancel');
868
868
  }
869
869
  }];
870
870
  await this._notificationService.prompt(Severity$1.Info, ( localize(
871
- 2645,
871
+ 3123,
872
872
  "Visual Studio Code now ships with a new default theme '{0}'. Do you want to give it a try?",
873
873
  theme.label
874
874
  )), choices, { onCancel: () => this._writeTelemetry('cancel') });
@@ -139,13 +139,13 @@ class FileIconThemeLoader {
139
139
  const contentValue = parse(content, errors);
140
140
  if (errors.length > 0) {
141
141
  return Promise.reject(( (new Error(( localize(
142
- 7207,
142
+ 7243,
143
143
  "Problems parsing file icons file: {0}",
144
144
  ( (errors.map(e => getParseErrorMessage(e.error)))).join(', ')
145
145
  ))))));
146
146
  }
147
147
  else if (getNodeType(contentValue) !== 'object') {
148
- return Promise.reject(( (new Error(( localize(7208, "Invalid format for file icons theme file: Object expected."))))));
148
+ return Promise.reject(( (new Error(( localize(7244, "Invalid format for file icons theme file: Object expected."))))));
149
149
  }
150
150
  return Promise.resolve(contentValue);
151
151
  });
@@ -39,7 +39,7 @@ class ProductIconThemeData {
39
39
  this.isLoaded = true;
40
40
  if (warnings.length) {
41
41
  logService.error(( localize(
42
- 7275,
42
+ 7311,
43
43
  "Problems processing product icons definitions in {0}:\n{1}",
44
44
  (location.toString()),
45
45
  warnings.join('\n')
@@ -70,7 +70,7 @@ class ProductIconThemeData {
70
70
  static get defaultTheme() {
71
71
  let themeData = ProductIconThemeData._defaultProductIconTheme;
72
72
  if (!themeData) {
73
- themeData = ProductIconThemeData._defaultProductIconTheme = ( (new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(7276, 'Default')), ThemeSettingDefaults.PRODUCT_ICON_THEME)));
73
+ themeData = ProductIconThemeData._defaultProductIconTheme = ( (new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(7312, 'Default')), ThemeSettingDefaults.PRODUCT_ICON_THEME)));
74
74
  themeData.isLoaded = true;
75
75
  themeData.extensionData = undefined;
76
76
  themeData.watch = false;
@@ -157,17 +157,17 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
157
157
  const contentValue = parse(content, parseErrors);
158
158
  if (parseErrors.length > 0) {
159
159
  return Promise.reject(( (new Error(( localize(
160
- 7277,
160
+ 7313,
161
161
  "Problems parsing product icons file: {0}",
162
162
  ( (parseErrors.map(e => getParseErrorMessage(e.error)))).join(', ')
163
163
  ))))));
164
164
  }
165
165
  else if (getNodeType(contentValue) !== 'object') {
166
- return Promise.reject(( (new Error(( localize(7278, "Invalid format for product icons theme file: Object expected."))))));
166
+ return Promise.reject(( (new Error(( localize(7314, "Invalid format for product icons theme file: Object expected."))))));
167
167
  }
168
168
  else if (!contentValue.iconDefinitions || !Array.isArray(contentValue.fonts) || !contentValue.fonts.length) {
169
169
  return Promise.reject(( (new Error(( localize(
170
- 7279,
170
+ 7315,
171
171
  "Invalid format for product icons theme file: Must contain iconDefinitions and fonts."
172
172
  ))))));
173
173
  }
@@ -181,14 +181,14 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
181
181
  fontWeight = font.weight;
182
182
  }
183
183
  else {
184
- warnings.push(( localize(7280, 'Invalid font weight in font \'{0}\'. Ignoring setting.', font.id)));
184
+ warnings.push(( localize(7316, 'Invalid font weight in font \'{0}\'. Ignoring setting.', font.id)));
185
185
  }
186
186
  let fontStyle = undefined;
187
187
  if (isString(font.style) && font.style.match(fontStyleRegex)) {
188
188
  fontStyle = font.style;
189
189
  }
190
190
  else {
191
- warnings.push(( localize(7281, 'Invalid font style in font \'{0}\'. Ignoring setting.', font.id)));
191
+ warnings.push(( localize(7317, 'Invalid font style in font \'{0}\'. Ignoring setting.', font.id)));
192
192
  }
193
193
  const sanitizedSrc = [];
194
194
  if (Array.isArray(font.src)) {
@@ -198,7 +198,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
198
198
  sanitizedSrc.push({ location: iconFontLocation, format: s.format });
199
199
  }
200
200
  else {
201
- warnings.push(( localize(7282, 'Invalid font source in font \'{0}\'. Ignoring source.', font.id)));
201
+ warnings.push(( localize(7318, 'Invalid font source in font \'{0}\'. Ignoring source.', font.id)));
202
202
  }
203
203
  }
204
204
  }
@@ -207,7 +207,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
207
207
  }
208
208
  else {
209
209
  warnings.push(( localize(
210
- 7283,
210
+ 7319,
211
211
  'No valid font source in font \'{0}\'. Ignoring font definition.',
212
212
  font.id
213
213
  )));
@@ -215,7 +215,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
215
215
  }
216
216
  else {
217
217
  warnings.push(( localize(
218
- 7284,
218
+ 7320,
219
219
  'Missing or invalid font id \'{0}\'. Skipping font definition.',
220
220
  font.id
221
221
  )));
@@ -233,11 +233,11 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
233
233
  iconDefinitions.set(iconId, { fontCharacter: definition.fontCharacter, font });
234
234
  }
235
235
  else {
236
- warnings.push(( localize(7285, 'Skipping icon definition \'{0}\'. Unknown font.', iconId)));
236
+ warnings.push(( localize(7321, 'Skipping icon definition \'{0}\'. Unknown font.', iconId)));
237
237
  }
238
238
  }
239
239
  else {
240
- warnings.push(( localize(7286, 'Skipping icon definition \'{0}\'. Unknown fontCharacter.', iconId)));
240
+ warnings.push(( localize(7322, 'Skipping icon definition \'{0}\'. Unknown fontCharacter.', iconId)));
241
241
  }
242
242
  }
243
243
  return { iconDefinitions };
@@ -372,7 +372,7 @@ let WorkbenchThemeService = class WorkbenchThemeService extends Disposable {
372
372
  }
373
373
  catch (error) {
374
374
  throw ( new Error(localize(
375
- 2597,
375
+ 3075,
376
376
  "Unable to load {0}: {1}",
377
377
  themeData.location?.toString(),
378
378
  error.message
@@ -608,13 +608,13 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
608
608
  const contentValue = parse(content, errors);
609
609
  if (errors.length > 0) {
610
610
  return Promise.reject(( (new Error(( localize(
611
- 7161,
611
+ 7197,
612
612
  "Problems parsing JSON theme file: {0}",
613
613
  ( (errors.map(e => getParseErrorMessage(e.error)))).join(', ')
614
614
  ))))));
615
615
  }
616
616
  else if (getNodeType(contentValue) !== 'object') {
617
- return Promise.reject(( (new Error(( localize(7162, "Invalid format for JSON theme file: Object expected."))))));
617
+ return Promise.reject(( (new Error(( localize(7198, "Invalid format for JSON theme file: Object expected."))))));
618
618
  }
619
619
  if (contentValue.include) {
620
620
  await _loadColorTheme(extensionResourceLoaderService, joinPath(dirname(themeLocation), contentValue.include), result);
@@ -628,7 +628,7 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
628
628
  if (colors) {
629
629
  if (typeof colors !== 'object') {
630
630
  return Promise.reject(( (new Error(( localize(
631
- 7163,
631
+ 7199,
632
632
  "Problem parsing color theme file: {0}. Property 'colors' is not of type 'object'.",
633
633
  (themeLocation.toString())
634
634
  ))))));
@@ -653,7 +653,7 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
653
653
  }
654
654
  else {
655
655
  return Promise.reject(( (new Error(( localize(
656
- 7164,
656
+ 7200,
657
657
  "Problem parsing color theme file: {0}. Property 'tokenColors' should be either an array specifying colors or a path to a TextMate theme file",
658
658
  (themeLocation.toString())
659
659
  ))))));
@@ -670,7 +670,7 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
670
670
  }
671
671
  catch (e) {
672
672
  return Promise.reject(( (new Error(( localize(
673
- 7165,
673
+ 7201,
674
674
  "Problem parsing color theme file: {0}. Property 'semanticTokenColors' contains a invalid selector",
675
675
  (themeLocation.toString())
676
676
  ))))));
@@ -688,17 +688,17 @@ function _loadSyntaxTokens(extensionResourceLoaderService, themeLocation, result
688
688
  const contentValue = parse$1(content);
689
689
  const settings = contentValue.settings;
690
690
  if (!Array.isArray(settings)) {
691
- return Promise.reject(( (new Error(( localize(7166, "Problem parsing tmTheme file: {0}. 'settings' is not array."))))));
691
+ return Promise.reject(( (new Error(( localize(7202, "Problem parsing tmTheme file: {0}. 'settings' is not array."))))));
692
692
  }
693
693
  convertSettings(settings, result);
694
694
  return Promise.resolve(null);
695
695
  }
696
696
  catch (e) {
697
- return Promise.reject(( (new Error(( localize(7167, "Problems parsing tmTheme file: {0}", e.message))))));
697
+ return Promise.reject(( (new Error(( localize(7203, "Problems parsing tmTheme file: {0}", e.message))))));
698
698
  }
699
699
  }, error => {
700
700
  return Promise.reject(( (new Error(( localize(
701
- 7168,
701
+ 7204,
702
702
  "Problems loading tmTheme file {0}: {1}",
703
703
  (themeLocation.toString()),
704
704
  error.message
@@ -135,31 +135,31 @@ const textmateColorSchema = {
135
135
  },
136
136
  settings: {
137
137
  type: 'object',
138
- description: ( localize(7209, 'Colors and styles for the token.')),
138
+ description: ( localize(7245, 'Colors and styles for the token.')),
139
139
  properties: {
140
140
  foreground: {
141
141
  type: 'string',
142
- description: ( localize(7210, 'Foreground color for the token.')),
142
+ description: ( localize(7246, '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(7211, 'Token background colors are currently not supported.'))
148
+ deprecationMessage: ( localize(7247, 'Token background colors are currently not supported.'))
149
149
  },
150
150
  fontStyle: {
151
151
  type: 'string',
152
152
  description: ( localize(
153
- 7212,
153
+ 7248,
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
- 7213,
158
+ 7249,
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(7214, 'None (clear inherited style)')), bodyText: '""' },
162
+ { label: ( localize(7250, '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(7215, 'Description of the rule.'))
191
+ description: ( localize(7251, 'Description of the rule.'))
192
192
  },
193
193
  scope: {
194
- description: ( localize(7216, 'Scope selector against which this rule matches.')),
194
+ description: ( localize(7252, '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(7217, 'Colors in the workbench')),
233
+ description: ( localize(7253, '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(7218, 'Path to a tmTheme file (relative to the current file).'))
240
+ description: ( localize(7254, 'Path to a tmTheme file (relative to the current file).'))
241
241
  },
242
242
  {
243
- description: ( localize(7219, 'Colors for syntax highlighting')),
243
+ description: ( localize(7255, 'Colors for syntax highlighting')),
244
244
  $ref: textmateColorsSchemaId
245
245
  }
246
246
  ]
247
247
  },
248
248
  semanticHighlighting: {
249
249
  type: 'boolean',
250
- description: ( localize(7220, 'Whether semantic highlighting should be enabled for this theme.'))
250
+ description: ( localize(7256, 'Whether semantic highlighting should be enabled for this theme.'))
251
251
  },
252
252
  semanticTokenColors: {
253
253
  type: 'object',
254
- description: ( localize(7221, 'Colors for semantic tokens')),
254
+ description: ( localize(7257, 'Colors for semantic tokens')),
255
255
  $ref: tokenStylingSchemaId
256
256
  }
257
257
  }