@codingame/monaco-vscode-theme-service-override 9.0.0 → 9.0.3

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": "9.0.0",
3
+ "version": "9.0.3",
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@9.0.0",
30
- "@codingame/monaco-vscode-files-service-override": "9.0.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@9.0.3",
30
+ "@codingame/monaco-vscode-files-service-override": "9.0.3"
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(2599, 'Icon for the \'Manage\' action in the theme selection quick pick.')));
66
+ const manageExtensionIcon = registerIcon('theme-selection-manage-extension', Codicon.gear, ( localize(3081, '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(2600, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
174
+ quickpick.placeholder = ( localize(3082, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
175
175
  quickpick.canSelectMany = false;
176
176
  disposables.add(quickpick.onDidChangeValue(() => this.trigger(quickpick.value)));
177
177
  disposables.add(quickpick.onDidAccept(async (_) => {
@@ -223,7 +223,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
223
223
  items = items.concat({ label: '$(sync~spin) Searching for themes...', id: undefined, alwaysShow: true });
224
224
  }
225
225
  else if (items.length === 0 && this._searchError) {
226
- items = [{ label: `$(error) ${( localize(2601, 'Error while searching for themes: {0}', this._searchError))}`, id: undefined, alwaysShow: true }];
226
+ items = [{ label: `$(error) ${( localize(3083, 'Error while searching for themes: {0}', this._searchError))}`, id: undefined, alwaysShow: true }];
227
227
  }
228
228
  const activeItemId = quickpick.activeItems[0]?.id;
229
229
  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
- 2602,
245
+ 3084,
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(2603, "OK"))
250
+ primaryButton: ( localize(3085, "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(2604, "Installing Extension {0}...", galleryExtension.displayName))
258
+ title: ( localize(3086, "Installing Extension {0}...", galleryExtension.displayName))
259
259
  }, async () => {
260
260
  await this.extensionManagementService.installFromGallery(galleryExtension, {
261
261
  isMachineScoped: false,
@@ -402,7 +402,7 @@ registerAction2(class extends Action2 {
402
402
  constructor() {
403
403
  super({
404
404
  id: SelectColorThemeCommandId,
405
- title: ( localize2(2605, 'Color Theme')),
405
+ title: ( localize2(3087, 'Color Theme')),
406
406
  category: Categories.Preferences,
407
407
  f1: true,
408
408
  keybinding: {
@@ -413,12 +413,12 @@ registerAction2(class extends Action2 {
413
413
  }
414
414
  getTitle(colorScheme) {
415
415
  switch (colorScheme) {
416
- case ColorScheme.DARK: return ( localize(2606, "Select Color Theme for System Dark Mode"));
417
- case ColorScheme.LIGHT: return ( localize(2607, "Select Color Theme for System Light Mode"));
418
- case ColorScheme.HIGH_CONTRAST_DARK: return ( localize(2608, "Select Color Theme for High Contrast Dark Mode"));
419
- case ColorScheme.HIGH_CONTRAST_LIGHT: return ( localize(2609, "Select Color Theme for High Contrast Light Mode"));
416
+ case ColorScheme.DARK: return ( localize(3088, "Select Color Theme for System Dark Mode"));
417
+ case ColorScheme.LIGHT: return ( localize(3089, "Select Color Theme for System Light Mode"));
418
+ case ColorScheme.HIGH_CONTRAST_DARK: return ( localize(3090, "Select Color Theme for High Contrast Dark Mode"));
419
+ case ColorScheme.HIGH_CONTRAST_LIGHT: return ( localize(3091, "Select Color Theme for High Contrast Light Mode"));
420
420
  default:
421
- return ( localize(2610, "Select Color Theme (detect system color mode disabled)"));
421
+ return ( localize(3092, "Select Color Theme (detect system color mode disabled)"));
422
422
  }
423
423
  }
424
424
  async run(accessor) {
@@ -428,7 +428,7 @@ registerAction2(class extends Action2 {
428
428
  let modeConfigureToggle;
429
429
  if (preferredColorScheme) {
430
430
  modeConfigureToggle = ( (new Toggle({
431
- title: ( localize(2611, 'Detect system color mode enabled. Click to configure.')),
431
+ title: ( localize(3093, 'Detect system color mode enabled. Click to configure.')),
432
432
  icon: Codicon.colorMode,
433
433
  isChecked: false,
434
434
  ...defaultToggleStyles
@@ -436,15 +436,15 @@ registerAction2(class extends Action2 {
436
436
  }
437
437
  else {
438
438
  modeConfigureToggle = ( (new Toggle({
439
- title: ( localize(2612, 'Detect system color mode disabled. Click to configure.')),
439
+ title: ( localize(3094, 'Detect system color mode disabled. Click to configure.')),
440
440
  icon: Codicon.colorMode,
441
441
  isChecked: false,
442
442
  ...defaultToggleStyles
443
443
  })));
444
444
  }
445
445
  const options = {
446
- installMessage: ( localize(2613, "Install Additional Color Themes...")),
447
- browseMessage: '$(plus) ' + ( localize(2614, "Browse Additional Color Themes...")),
446
+ installMessage: ( localize(3095, "Install Additional Color Themes...")),
447
+ browseMessage: '$(plus) ' + ( localize(3096, "Browse Additional Color Themes...")),
448
448
  placeholderMessage: this.getTitle(preferredColorScheme),
449
449
  marketplaceTag: 'category:themes',
450
450
  toggles: [modeConfigureToggle],
@@ -459,9 +459,9 @@ registerAction2(class extends Action2 {
459
459
  const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
460
460
  const themes = await themeService.getColorThemes();
461
461
  const currentTheme = themeService.getColorTheme();
462
- const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(2615, "light themes")));
463
- const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(2616, "dark themes")));
464
- const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(2617, "high contrast themes")));
462
+ const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(3097, "light themes")));
463
+ const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(3098, "dark themes")));
464
+ const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(3099, "high contrast themes")));
465
465
  let picks;
466
466
  switch (preferredColorScheme) {
467
467
  case ColorScheme.DARK:
@@ -484,7 +484,7 @@ registerAction2(class extends Action2 {
484
484
  constructor() {
485
485
  super({
486
486
  id: SelectFileIconThemeCommandId,
487
- title: ( localize2(2618, 'File Icon Theme')),
487
+ title: ( localize2(3100, 'File Icon Theme')),
488
488
  category: Categories.Preferences,
489
489
  f1: true
490
490
  });
@@ -492,8 +492,8 @@ registerAction2(class extends Action2 {
492
492
  async run(accessor) {
493
493
  const themeService = accessor.get(IWorkbenchThemeService);
494
494
  const options = {
495
- installMessage: ( localize(2619, "Install Additional File Icon Themes...")),
496
- placeholderMessage: ( localize(2620, "Select File Icon Theme (Up/Down Keys to Preview)")),
495
+ installMessage: ( localize(3101, "Install Additional File Icon Themes...")),
496
+ placeholderMessage: ( localize(3102, "Select File Icon Theme (Up/Down Keys to Preview)")),
497
497
  marketplaceTag: 'tag:icon-theme'
498
498
  };
499
499
  const setTheme = (theme, settingsTarget) => themeService.setFileIconTheme(theme, settingsTarget);
@@ -501,8 +501,8 @@ registerAction2(class extends Action2 {
501
501
  const instantiationService = accessor.get(IInstantiationService);
502
502
  const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
503
503
  const picks = [
504
- { type: 'separator', label: ( localize(2621, 'file icon themes')) },
505
- { id: '', theme: FileIconThemeData.noIconTheme, label: ( localize(2622, 'None')), description: ( localize(2623, 'Disable File Icons')) },
504
+ { type: 'separator', label: ( localize(3103, 'file icon themes')) },
505
+ { id: '', theme: FileIconThemeData.noIconTheme, label: ( localize(3104, 'None')), description: ( localize(3105, 'Disable File Icons')) },
506
506
  ...toEntries(await themeService.getFileIconThemes()),
507
507
  ];
508
508
  await picker.openQuickPick(picks, themeService.getFileIconTheme());
@@ -513,7 +513,7 @@ registerAction2(class extends Action2 {
513
513
  constructor() {
514
514
  super({
515
515
  id: SelectProductIconThemeCommandId,
516
- title: ( localize2(2624, 'Product Icon Theme')),
516
+ title: ( localize2(3106, 'Product Icon Theme')),
517
517
  category: Categories.Preferences,
518
518
  f1: true
519
519
  });
@@ -521,9 +521,9 @@ registerAction2(class extends Action2 {
521
521
  async run(accessor) {
522
522
  const themeService = accessor.get(IWorkbenchThemeService);
523
523
  const options = {
524
- installMessage: ( localize(2625, "Install Additional Product Icon Themes...")),
525
- browseMessage: '$(plus) ' + ( localize(2626, "Browse Additional Product Icon Themes...")),
526
- placeholderMessage: ( localize(2627, "Select Product Icon Theme (Up/Down Keys to Preview)")),
524
+ installMessage: ( localize(3107, "Install Additional Product Icon Themes...")),
525
+ browseMessage: '$(plus) ' + ( localize(3108, "Browse Additional Product Icon Themes...")),
526
+ placeholderMessage: ( localize(3109, "Select Product Icon Theme (Up/Down Keys to Preview)")),
527
527
  marketplaceTag: 'tag:product-icon-theme'
528
528
  };
529
529
  const setTheme = (theme, settingsTarget) => themeService.setProductIconTheme(theme, settingsTarget);
@@ -531,8 +531,8 @@ registerAction2(class extends Action2 {
531
531
  const instantiationService = accessor.get(IInstantiationService);
532
532
  const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
533
533
  const picks = [
534
- { type: 'separator', label: ( localize(2628, 'product icon themes')) },
535
- { id: DEFAULT_PRODUCT_ICON_THEME_ID, theme: ProductIconThemeData.defaultTheme, label: ( localize(2629, 'Default')) },
534
+ { type: 'separator', label: ( localize(3110, 'product icon themes')) },
535
+ { id: DEFAULT_PRODUCT_ICON_THEME_ID, theme: ProductIconThemeData.defaultTheme, label: ( localize(3111, 'Default')) },
536
536
  ...toEntries(await themeService.getProductIconThemes()),
537
537
  ];
538
538
  await picker.openQuickPick(picks, themeService.getProductIconTheme());
@@ -598,13 +598,13 @@ function toEntries(themes, label) {
598
598
  }
599
599
  const configureButton = {
600
600
  iconClass: ThemeIcon.asClassName(manageExtensionIcon),
601
- tooltip: ( localize(2630, "Manage Extension")),
601
+ tooltip: ( localize(3112, "Manage Extension")),
602
602
  };
603
603
  registerAction2(class extends Action2 {
604
604
  constructor() {
605
605
  super({
606
606
  id: 'workbench.action.generateColorTheme',
607
- title: ( localize2(2631, 'Generate Color Theme From Current Settings')),
607
+ title: ( localize2(3113, 'Generate Color Theme From Current Settings')),
608
608
  category: Categories.Developer,
609
609
  f1: true
610
610
  });
@@ -654,7 +654,7 @@ registerAction2(class extends Action2 {
654
654
  constructor() {
655
655
  super({
656
656
  id: toggleLightDarkThemesCommandId,
657
- title: ( localize2(2632, 'Toggle between Light/Dark Themes')),
657
+ title: ( localize2(3114, 'Toggle between Light/Dark Themes')),
658
658
  category: Categories.Preferences,
659
659
  f1: true,
660
660
  });
@@ -666,13 +666,13 @@ registerAction2(class extends Action2 {
666
666
  const preferencesService = accessor.get(IPreferencesService);
667
667
  if (configurationService.getValue(ThemeSettings.DETECT_COLOR_SCHEME)) {
668
668
  const message = ( localize(
669
- 2633,
669
+ 3115,
670
670
  "Cannot toggle between light and dark themes when `{0}` is enabled in settings.",
671
671
  ThemeSettings.DETECT_COLOR_SCHEME
672
672
  ));
673
673
  notificationService.prompt(Severity$1.Info, message, [
674
674
  {
675
- label: ( localize(2634, "Open Settings")),
675
+ label: ( localize(3116, "Open Settings")),
676
676
  run: () => {
677
677
  return preferencesService.openUserSettings({ query: ThemeSettings.DETECT_COLOR_SCHEME });
678
678
  }
@@ -710,7 +710,7 @@ registerAction2(class extends Action2 {
710
710
  constructor() {
711
711
  super({
712
712
  id: browseColorThemesInMarketplaceCommandId,
713
- title: ( localize2(2635, 'Browse Color Themes in Marketplace')),
713
+ title: ( localize2(3117, 'Browse Color Themes in Marketplace')),
714
714
  category: Categories.Preferences,
715
715
  f1: true,
716
716
  });
@@ -746,13 +746,13 @@ registerAction2(class extends Action2 {
746
746
  });
747
747
  const ThemesSubMenu = ( (new MenuId('ThemesSubMenu')));
748
748
  MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
749
- title: ( localize(2636, "Themes")),
749
+ title: ( localize(3118, "Themes")),
750
750
  submenu: ThemesSubMenu,
751
751
  group: '2_configuration',
752
752
  order: 7
753
753
  });
754
754
  MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
755
- title: ( localize(2637, "&&Theme")),
755
+ title: ( localize(3119, "&&Theme")),
756
756
  submenu: ThemesSubMenu,
757
757
  group: '2_configuration',
758
758
  order: 7
@@ -760,21 +760,21 @@ MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
760
760
  MenuRegistry.appendMenuItem(ThemesSubMenu, {
761
761
  command: {
762
762
  id: SelectColorThemeCommandId,
763
- title: ( localize(2605, 'Color Theme'))
763
+ title: ( localize(3087, 'Color Theme'))
764
764
  },
765
765
  order: 1
766
766
  });
767
767
  MenuRegistry.appendMenuItem(ThemesSubMenu, {
768
768
  command: {
769
769
  id: SelectFileIconThemeCommandId,
770
- title: ( localize(2638, "File Icon Theme"))
770
+ title: ( localize(3120, "File Icon Theme"))
771
771
  },
772
772
  order: 2
773
773
  });
774
774
  MenuRegistry.appendMenuItem(ThemesSubMenu, {
775
775
  command: {
776
776
  id: SelectProductIconThemeCommandId,
777
- title: ( localize(2639, "Product Icon Theme"))
777
+ title: ( localize(3121, "Product Icon Theme"))
778
778
  },
779
779
  order: 3
780
780
  });
@@ -816,20 +816,20 @@ let DefaultThemeUpdatedNotificationContribution = class DefaultThemeUpdatedNotif
816
816
  if (newTheme) {
817
817
  const choices = [
818
818
  {
819
- label: ( localize(2640, "Keep New Theme")),
819
+ label: ( localize(3122, "Keep New Theme")),
820
820
  run: () => {
821
821
  this._writeTelemetry('keepNew');
822
822
  }
823
823
  },
824
824
  {
825
- label: ( localize(2641, "Browse Themes")),
825
+ label: ( localize(3123, "Browse Themes")),
826
826
  run: () => {
827
827
  this._writeTelemetry('browse');
828
828
  this._commandService.executeCommand(SelectColorThemeCommandId);
829
829
  }
830
830
  },
831
831
  {
832
- label: ( localize(2642, "Revert")),
832
+ label: ( localize(3124, "Revert")),
833
833
  run: async () => {
834
834
  this._writeTelemetry('keepOld');
835
835
  const oldSettingsId = usingLight ? ThemeSettingDefaults.COLOR_THEME_LIGHT_OLD : ThemeSettingDefaults.COLOR_THEME_DARK_OLD;
@@ -841,7 +841,7 @@ let DefaultThemeUpdatedNotificationContribution = class DefaultThemeUpdatedNotif
841
841
  }
842
842
  ];
843
843
  await this._notificationService.prompt(Severity$1.Info, ( localize(
844
- 2643,
844
+ 3125,
845
845
  "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.",
846
846
  newTheme.label
847
847
  )), choices, {
@@ -854,20 +854,20 @@ let DefaultThemeUpdatedNotificationContribution = class DefaultThemeUpdatedNotif
854
854
  const theme = (await this._workbenchThemeService.getColorThemes()).find(theme => theme.settingsId === newThemeSettingsId);
855
855
  if (theme) {
856
856
  const choices = [{
857
- label: ( localize(2644, "Try New Theme")),
857
+ label: ( localize(3126, "Try New Theme")),
858
858
  run: () => {
859
859
  this._writeTelemetry('tryNew');
860
860
  this._workbenchThemeService.setColorTheme(theme, 'auto');
861
861
  }
862
862
  },
863
863
  {
864
- label: ( localize(2645, "Cancel")),
864
+ label: ( localize(3127, "Cancel")),
865
865
  run: () => {
866
866
  this._writeTelemetry('cancel');
867
867
  }
868
868
  }];
869
869
  await this._notificationService.prompt(Severity$1.Info, ( localize(
870
- 2646,
870
+ 3128,
871
871
  "Visual Studio Code now ships with a new default theme '{0}'. Do you want to give it a try?",
872
872
  theme.label
873
873
  )), 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
- 7212,
142
+ 7248,
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(7213, "Invalid format for file icons theme file: Object expected."))))));
148
+ return Promise.reject(( (new Error(( localize(7249, "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
- 7280,
42
+ 7316,
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(7281, 'Default')), ThemeSettingDefaults.PRODUCT_ICON_THEME)));
73
+ themeData = ProductIconThemeData._defaultProductIconTheme = ( (new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(7317, '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
- 7282,
160
+ 7318,
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(7283, "Invalid format for product icons theme file: Object expected."))))));
166
+ return Promise.reject(( (new Error(( localize(7319, "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
- 7284,
170
+ 7320,
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(7285, 'Invalid font weight in font \'{0}\'. Ignoring setting.', font.id)));
184
+ warnings.push(( localize(7321, '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(7286, 'Invalid font style in font \'{0}\'. Ignoring setting.', font.id)));
191
+ warnings.push(( localize(7322, '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(7287, 'Invalid font source in font \'{0}\'. Ignoring source.', font.id)));
201
+ warnings.push(( localize(7323, '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
- 7288,
210
+ 7324,
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
- 7289,
218
+ 7325,
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(7290, 'Skipping icon definition \'{0}\'. Unknown font.', iconId)));
236
+ warnings.push(( localize(7326, 'Skipping icon definition \'{0}\'. Unknown font.', iconId)));
237
237
  }
238
238
  }
239
239
  else {
240
- warnings.push(( localize(7291, 'Skipping icon definition \'{0}\'. Unknown fontCharacter.', iconId)));
240
+ warnings.push(( localize(7327, '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
- 2598,
375
+ 3080,
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
- 7166,
611
+ 7202,
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(7167, "Invalid format for JSON theme file: Object expected."))))));
617
+ return Promise.reject(( (new Error(( localize(7203, "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
- 7168,
631
+ 7204,
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
- 7169,
656
+ 7205,
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
- 7170,
673
+ 7206,
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(7171, "Problem parsing tmTheme file: {0}. 'settings' is not array."))))));
691
+ return Promise.reject(( (new Error(( localize(7207, "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(7172, "Problems parsing tmTheme file: {0}", e.message))))));
697
+ return Promise.reject(( (new Error(( localize(7208, "Problems parsing tmTheme file: {0}", e.message))))));
698
698
  }
699
699
  }, error => {
700
700
  return Promise.reject(( (new Error(( localize(
701
- 7173,
701
+ 7209,
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(7214, 'Colors and styles for the token.')),
138
+ description: ( localize(7250, 'Colors and styles for the token.')),
139
139
  properties: {
140
140
  foreground: {
141
141
  type: 'string',
142
- description: ( localize(7215, 'Foreground color for the token.')),
142
+ description: ( localize(7251, '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(7216, 'Token background colors are currently not supported.'))
148
+ deprecationMessage: ( localize(7252, 'Token background colors are currently not supported.'))
149
149
  },
150
150
  fontStyle: {
151
151
  type: 'string',
152
152
  description: ( localize(
153
- 7217,
153
+ 7253,
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
- 7218,
158
+ 7254,
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(7219, 'None (clear inherited style)')), bodyText: '""' },
162
+ { label: ( localize(7255, '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(7220, 'Description of the rule.'))
191
+ description: ( localize(7256, 'Description of the rule.'))
192
192
  },
193
193
  scope: {
194
- description: ( localize(7221, 'Scope selector against which this rule matches.')),
194
+ description: ( localize(7257, '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(7222, 'Colors in the workbench')),
233
+ description: ( localize(7258, '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(7223, 'Path to a tmTheme file (relative to the current file).'))
240
+ description: ( localize(7259, 'Path to a tmTheme file (relative to the current file).'))
241
241
  },
242
242
  {
243
- description: ( localize(7224, 'Colors for syntax highlighting')),
243
+ description: ( localize(7260, 'Colors for syntax highlighting')),
244
244
  $ref: textmateColorsSchemaId
245
245
  }
246
246
  ]
247
247
  },
248
248
  semanticHighlighting: {
249
249
  type: 'boolean',
250
- description: ( localize(7225, 'Whether semantic highlighting should be enabled for this theme.'))
250
+ description: ( localize(7261, 'Whether semantic highlighting should be enabled for this theme.'))
251
251
  },
252
252
  semanticTokenColors: {
253
253
  type: 'object',
254
- description: ( localize(7226, 'Colors for semantic tokens')),
254
+ description: ( localize(7262, 'Colors for semantic tokens')),
255
255
  $ref: tokenStylingSchemaId
256
256
  }
257
257
  }