@codingame/monaco-vscode-theme-service-override 37.5.0 → 37.6.0

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": "37.5.0",
3
+ "version": "37.6.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - theme service-override",
6
6
  "keywords": [],
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "37.5.0",
19
- "@codingame/monaco-vscode-files-service-override": "37.5.0"
18
+ "@codingame/monaco-vscode-api": "37.6.0",
19
+ "@codingame/monaco-vscode-files-service-override": "37.6.0"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -6,15 +6,15 @@ import { AGENTS_FLOATING_PANEL_GAP } from '@codingame/monaco-vscode-api/vscode/v
6
6
  registerSize(
7
7
  "agents.layout.floatingPanelGap",
8
8
  sizeForAllThemes(AGENTS_FLOATING_PANEL_GAP, "px"),
9
- ( localize(3141, "Gap between floating panels in the Agents window."))
9
+ ( localize(3143, "Gap between floating panels in the Agents window."))
10
10
  );
11
- registerSize("agents.fontSize.heading1", sizeForAllThemes(26, "px"), ( localize(3142, "Heading 1 font size for the agents window (welcome screen title).")), ( localize(3143, "Deprecated: use `fontSize.heading1` instead.")));
12
- registerSize("agents.fontSize.heading2", sizeForAllThemes(18, "px"), ( localize(3144, "Heading 2 font size for the agents window (title).")), ( localize(3145, "Deprecated: use `fontSize.heading2` instead.")));
13
- registerSize("agents.fontSize.heading3", sizeForAllThemes(13, "px"), ( localize(3146, "Heading 3 font size for the agents window (subtitle).")), ( localize(3147, "Deprecated: use `fontSize.heading3` instead.")));
14
- registerSize("agents.fontSize.body1", sizeForAllThemes(13, "px"), ( localize(3148, "Primary body font size for the agents window.")), ( localize(3149, "Deprecated: use `fontSize.body1` instead.")));
15
- registerSize("agents.fontSize.body2", sizeForAllThemes(11, "px"), ( localize(3150, "Secondary body font size for the agents window.")), ( localize(3151, "Deprecated: use `fontSize.body2` instead.")));
16
- registerSize("agents.fontSize.label1", sizeForAllThemes(12, "px"), ( localize(3152, "Label 1 font size for the agents window (section title, tabs).")), ( localize(3153, "Deprecated: use `fontSize.label1` instead.")));
17
- registerSize("agents.fontSize.label2", sizeForAllThemes(11, "px"), ( localize(3154, "Label 2 font size for the agents window (metadata).")), ( localize(3155, "Deprecated: use `fontSize.label2` instead.")));
18
- registerSize("agents.fontSize.label3", sizeForAllThemes(10, "px"), ( localize(3156, "Label 3 font size for the agents window (badge).")), ( localize(3157, "Deprecated: use `fontSize.label3` instead.")));
19
- registerSize("agents.fontWeight.regular", sizeForAllThemes(400, ""), ( localize(3158, "Regular font weight (400) for the agents window.")), ( localize(3159, "Deprecated: use `fontWeight.regular` instead.")));
20
- registerSize("agents.fontWeight.semiBold", sizeForAllThemes(600, ""), ( localize(3160, "SemiBold font weight (600) for the agents window.")), ( localize(3161, "Deprecated: use `fontWeight.semiBold` instead.")));
11
+ registerSize("agents.fontSize.heading1", sizeForAllThemes(26, "px"), ( localize(3144, "Heading 1 font size for the agents window (welcome screen title).")), ( localize(3145, "Deprecated: use `fontSize.heading1` instead.")));
12
+ registerSize("agents.fontSize.heading2", sizeForAllThemes(18, "px"), ( localize(3146, "Heading 2 font size for the agents window (title).")), ( localize(3147, "Deprecated: use `fontSize.heading2` instead.")));
13
+ registerSize("agents.fontSize.heading3", sizeForAllThemes(13, "px"), ( localize(3148, "Heading 3 font size for the agents window (subtitle).")), ( localize(3149, "Deprecated: use `fontSize.heading3` instead.")));
14
+ registerSize("agents.fontSize.body1", sizeForAllThemes(13, "px"), ( localize(3150, "Primary body font size for the agents window.")), ( localize(3151, "Deprecated: use `fontSize.body1` instead.")));
15
+ registerSize("agents.fontSize.body2", sizeForAllThemes(11, "px"), ( localize(3152, "Secondary body font size for the agents window.")), ( localize(3153, "Deprecated: use `fontSize.body2` instead.")));
16
+ registerSize("agents.fontSize.label1", sizeForAllThemes(12, "px"), ( localize(3154, "Label 1 font size for the agents window (section title, tabs).")), ( localize(3155, "Deprecated: use `fontSize.label1` instead.")));
17
+ registerSize("agents.fontSize.label2", sizeForAllThemes(11, "px"), ( localize(3156, "Label 2 font size for the agents window (metadata).")), ( localize(3157, "Deprecated: use `fontSize.label2` instead.")));
18
+ registerSize("agents.fontSize.label3", sizeForAllThemes(10, "px"), ( localize(3158, "Label 3 font size for the agents window (badge).")), ( localize(3159, "Deprecated: use `fontSize.label3` instead.")));
19
+ registerSize("agents.fontWeight.regular", sizeForAllThemes(400, ""), ( localize(3160, "Regular font weight (400) for the agents window.")), ( localize(3161, "Deprecated: use `fontWeight.regular` instead.")));
20
+ registerSize("agents.fontWeight.semiBold", sizeForAllThemes(600, ""), ( localize(3162, "SemiBold font weight (600) for the agents window.")), ( localize(3163, "Deprecated: use `fontWeight.semiBold` instead.")));
@@ -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(20528, "Icon for the 'Manage' action in the theme selection quick pick.")));
56
+ const manageExtensionIcon = registerIcon("theme-selection-manage-extension", Codicon.gear, ( localize(20530, "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(20529, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
187
+ quickpick.placeholder = ( localize(20531, "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(20530, "Error while searching for themes: {0}", this._searchError))}`,
241
+ label: `$(error) ${( localize(20532, "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
- 20531,
263
+ 20533,
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(20532, "OK"))
268
+ primaryButton: ( localize(20534, "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(20533, "Installing Extension {0}...", galleryExtension.displayName))
276
+ title: ( localize(20535, "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(20534, "Color Theme")),
427
+ title: ( localize2(20536, "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(20535, "Select Color Theme for System Dark Mode");
439
+ return localize(20537, "Select Color Theme for System Dark Mode");
440
440
  case ColorScheme.LIGHT:
441
- return localize(20536, "Select Color Theme for System Light Mode");
441
+ return localize(20538, "Select Color Theme for System Light Mode");
442
442
  case ColorScheme.HIGH_CONTRAST_DARK:
443
- return localize(20537, "Select Color Theme for High Contrast Dark Mode");
443
+ return localize(20539, "Select Color Theme for High Contrast Dark Mode");
444
444
  case ColorScheme.HIGH_CONTRAST_LIGHT:
445
- return localize(20538, "Select Color Theme for High Contrast Light Mode");
445
+ return localize(20540, "Select Color Theme for High Contrast Light Mode");
446
446
  default:
447
- return localize(20539, "Select Color Theme (detect system color mode disabled)");
447
+ return localize(20541, "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(20540, "Detect system color mode enabled. Click to configure.")) : ( localize(20541, "Detect system color mode disabled. Click to configure.")),
455
+ tooltip: preferredColorScheme ? ( localize(20542, "Detect system color mode enabled. Click to configure.")) : ( localize(20543, "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(20542, "Install Additional Color Themes...")),
461
- browseMessage: "$(plus) " + ( localize(20543, "Browse Additional Color Themes...")),
460
+ installMessage: ( localize(20544, "Install Additional Color Themes...")),
461
+ browseMessage: "$(plus) " + ( localize(20545, "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(20544, "light themes")));
479
- const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(20545, "dark themes")));
480
- const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(20546, "high contrast themes")));
478
+ const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(20546, "light themes")));
479
+ const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(20547, "dark themes")));
480
+ const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(20548, "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(20547, "File Icon Theme")),
503
+ title: ( localize2(20549, "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(20548, "Install Additional File Icon Themes...")),
512
- placeholderMessage: ( localize(20549, "Select File Icon Theme (Up/Down Keys to Preview)")),
511
+ installMessage: ( localize(20550, "Install Additional File Icon Themes...")),
512
+ placeholderMessage: ( localize(20551, "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(20550, "file icon themes"))
521
+ label: ( localize(20552, "file icon themes"))
522
522
  }, {
523
523
  id: "",
524
524
  theme: FileIconThemeData.noIconTheme,
525
- label: ( localize(20551, "None")),
526
- description: ( localize(20552, "Disable File Icons"))
525
+ label: ( localize(20553, "None")),
526
+ description: ( localize(20554, "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(20553, "Product Icon Theme")),
536
+ title: ( localize2(20555, "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(20554, "Install Additional Product Icon Themes...")),
545
- browseMessage: "$(plus) " + ( localize(20555, "Browse Additional Product Icon Themes...")),
546
- placeholderMessage: ( localize(20556, "Select Product Icon Theme (Up/Down Keys to Preview)")),
544
+ installMessage: ( localize(20556, "Install Additional Product Icon Themes...")),
545
+ browseMessage: "$(plus) " + ( localize(20557, "Browse Additional Product Icon Themes...")),
546
+ placeholderMessage: ( localize(20558, "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(20557, "product icon themes"))
555
+ label: ( localize(20559, "product icon themes"))
556
556
  }, {
557
557
  id: DEFAULT_PRODUCT_ICON_THEME_ID,
558
558
  theme: ProductIconThemeData.defaultTheme,
559
- label: ( localize(20558, "Default"))
559
+ label: ( localize(20560, "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(20559, "Try New Default Themes")),
568
+ title: ( localize2(20561, "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(20560, "Pick a new default theme"));
592
+ picker.placeholder = ( localize(20562, "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(20561, "Default Light")),
679
- [ThemeSettingDefaults.COLOR_THEME_DARK]: ( localize(20562, "Default Dark"))
678
+ [ThemeSettingDefaults.COLOR_THEME_LIGHT]: ( localize(20563, "Default Light")),
679
+ [ThemeSettingDefaults.COLOR_THEME_DARK]: ( localize(20564, "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(20563, "Manage Extension"))
718
+ tooltip: ( localize(20565, "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(20564, "Generate Color Theme From Current Settings")),
724
+ title: ( localize2(20566, "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(20565, "Toggle between Light/Dark Themes")),
779
+ title: ( localize2(20567, "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
- 20566,
791
+ 20568,
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(20567, "Open Settings")),
796
+ label: ( localize(20569, "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(20568, "Browse Color Themes in Marketplace")),
835
+ title: ( localize2(20570, "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(20569, "Themes")),
876
+ title: ( localize(20571, "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(20570, "&&Themes")),
882
+ title: ( localize(20572, "&&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(20534, "Color Theme"))
890
+ title: ( localize(20536, "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(20571, "File Icon Theme"))
897
+ title: ( localize(20573, "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(20572, "Product Icon Theme"))
904
+ title: ( localize(20574, "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
- 22339,
152
+ 22341,
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(22340, "Invalid format for file icons theme file: Object expected.")))));
157
+ return Promise.reject(( new Error(( localize(22342, "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
- 22341,
46
+ 22343,
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(22342, "Default")), ThemeSettingDefaults.PRODUCT_ICON_THEME));
79
+ themeData = ProductIconThemeData._defaultProductIconTheme = ( new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(22344, "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
- 22343,
190
+ 22345,
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(22344, "Invalid format for product icons theme file: Object expected.")))));
195
+ return Promise.reject(( new Error(( localize(22346, "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
- 22345,
198
+ 22347,
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(22346, "Invalid font weight in font '{0}'. Ignoring setting.", font.id)));
211
+ warnings.push(( localize(22348, "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(22347, "Invalid font style in font '{0}'. Ignoring setting.", font.id)));
217
+ warnings.push(( localize(22349, "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(22348, "Invalid font source in font '{0}'. Ignoring source.", font.id)));
229
+ warnings.push(( localize(22350, "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
- 22349,
241
+ 22351,
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
- 22350,
248
+ 22352,
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(22351, "Skipping icon definition '{0}'. Unknown font.", iconId)));
271
+ warnings.push(( localize(22353, "Skipping icon definition '{0}'. Unknown font.", iconId)));
272
272
  }
273
273
  } else {
274
- warnings.push(( localize(22352, "Skipping icon definition '{0}': Needs to be defined", iconId)));
274
+ warnings.push(( localize(22354, "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
- 22353,
294
+ 22355,
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(22354, "Keep It")),
299
+ label: ( localize(22356, "Keep It")),
300
300
  run: () => resolve(true)
301
301
  }), toAction({
302
302
  id: "themeUpdated.noThanks",
303
- label: ( localize(22355, "No Thanks")),
303
+ label: ( localize(22357, "No Thanks")),
304
304
  run: () => resolve(false)
305
305
  })], {
306
306
  onCancel: () => resolve(false)
@@ -505,7 +505,7 @@ let WorkbenchThemeService = class WorkbenchThemeService extends Disposable {
505
505
  return this.applyTheme(themeData, settingsTarget);
506
506
  } catch (error) {
507
507
  throw ( new Error(( localize(
508
- 22356,
508
+ 22358,
509
509
  "Unable to load {0}: {1}",
510
510
  themeData.location?.toString(),
511
511
  error.message
@@ -133,31 +133,31 @@ const textmateColorSchema = {
133
133
  },
134
134
  settings: {
135
135
  type: "object",
136
- description: ( localize(22387, "Colors and styles for the token.")),
136
+ description: ( localize(22389, "Colors and styles for the token.")),
137
137
  properties: {
138
138
  foreground: {
139
139
  type: "string",
140
- description: ( localize(22388, "Foreground color for the token.")),
140
+ description: ( localize(22390, "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(22389, "Token background colors are currently not supported."))
146
+ deprecationMessage: ( localize(22391, "Token background colors are currently not supported."))
147
147
  },
148
148
  fontStyle: {
149
149
  type: "string",
150
150
  description: ( localize(
151
- 22390,
151
+ 22392,
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
- 22391,
156
+ 22393,
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(22392, "None (clear inherited style)")),
160
+ label: ( localize(22394, "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
- 22393,
197
+ 22395,
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
- 22394,
204
+ 22396,
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
- 22395,
211
+ 22397,
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(22396, "Description of the rule."))
238
+ description: ( localize(22398, "Description of the rule."))
239
239
  },
240
240
  scope: {
241
- description: ( localize(22397, "Scope selector against which this rule matches.")),
241
+ description: ( localize(22399, "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(22398, "Colors in the workbench")),
273
+ description: ( localize(22400, "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(22399, "Path to a tmTheme file (relative to the current file)."))
280
+ description: ( localize(22401, "Path to a tmTheme file (relative to the current file)."))
281
281
  }, {
282
- description: ( localize(22400, "Colors for syntax highlighting")),
282
+ description: ( localize(22402, "Colors for syntax highlighting")),
283
283
  $ref: textmateColorsSchemaId
284
284
  }]
285
285
  },
286
286
  semanticHighlighting: {
287
287
  type: "boolean",
288
- description: ( localize(22401, "Whether semantic highlighting should be enabled for this theme."))
288
+ description: ( localize(22403, "Whether semantic highlighting should be enabled for this theme."))
289
289
  },
290
290
  semanticTokenColors: {
291
291
  type: "object",
292
- description: ( localize(22402, "Colors for semantic tokens")),
292
+ description: ( localize(22404, "Colors for semantic tokens")),
293
293
  $ref: tokenStylingSchemaId
294
294
  }
295
295
  }