@codingame/monaco-vscode-theme-service-override 37.1.0 → 37.3.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.
Files changed (31) hide show
  1. package/index.js +2 -1
  2. package/package.json +3 -3
  3. package/vscode/src/vs/sessions/common/sizes.d.ts +22 -0
  4. package/vscode/src/vs/sessions/common/sizes.js +20 -0
  5. package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +49 -49
  6. package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +5 -5
  7. package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +13 -13
  8. package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +5 -5
  9. package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +16 -16
  10. package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +39 -39
  11. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +7 -7
  12. package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +55 -47
  13. package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +21 -21
  14. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/activityBar.css +0 -301
  15. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/commandCenter.css +0 -47
  16. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/editorBorder.css +0 -96
  17. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/fontRamp.css +0 -206
  18. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/keyboardFocusOnly.css +0 -44
  19. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/notificationsDialogs.css +0 -146
  20. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/padding.css +0 -377
  21. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/paneHeaders.css +0 -123
  22. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/roundedCorners.css +0 -287
  23. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/sashHandles.css +0 -94
  24. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/shadows.css +0 -52
  25. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/statusBar.css +0 -97
  26. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/tabs.css +0 -1044
  27. package/vscode/src/vs/workbench/contrib/modernUI/browser/media/titlebar.css +0 -19
  28. package/vscode/src/vs/workbench/contrib/modernUI/browser/modernUI.contribution.d.ts +0 -28
  29. package/vscode/src/vs/workbench/contrib/modernUI/browser/modernUI.contribution.js +0 -219
  30. package/vscode/src/vs/workbench/services/themes/browser/modernTabColorCustomizations.d.ts +0 -1
  31. package/vscode/src/vs/workbench/services/themes/browser/modernTabColorCustomizations.js +0 -255
package/index.js CHANGED
@@ -5,7 +5,8 @@ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/
5
5
  import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
6
6
  import getServiceOverride$1 from '@codingame/monaco-vscode-files-service-override';
7
7
  import './vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js';
8
- import './vscode/src/vs/workbench/contrib/modernUI/browser/modernUI.contribution.js';
8
+ import '@codingame/monaco-vscode-api/vscode/vs/sessions/common/theme';
9
+ import './vscode/src/vs/sessions/common/sizes.js';
9
10
 
10
11
  class StandaloneWorkbenchThemeService extends WorkbenchThemeService {
11
12
  registerEditorContainer() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-theme-service-override",
3
- "version": "37.1.0",
3
+ "version": "37.3.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.1.0",
19
- "@codingame/monaco-vscode-files-service-override": "37.1.0"
18
+ "@codingame/monaco-vscode-api": "37.3.0",
19
+ "@codingame/monaco-vscode-files-service-override": "37.3.0"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -0,0 +1,22 @@
1
+ /** Gap between floating panels in the Agents window. */
2
+ export declare const agentsLayoutFloatingPanelGap: string;
3
+ /** @deprecated Use `fontSize.heading1` instead. */
4
+ export declare const agentsFontSizeHeading1: string;
5
+ /** @deprecated Use `fontSize.heading2` instead. */
6
+ export declare const agentsFontSizeHeading2: string;
7
+ /** @deprecated Use `fontSize.heading3` instead. */
8
+ export declare const agentsFontSizeHeading3: string;
9
+ /** @deprecated Use `fontSize.body1` instead. */
10
+ export declare const agentsFontSizeBody1: string;
11
+ /** @deprecated Use `fontSize.body2` instead. */
12
+ export declare const agentsFontSizeBody2: string;
13
+ /** @deprecated Use `fontSize.label1` instead. */
14
+ export declare const agentsFontSizeLabel1: string;
15
+ /** @deprecated Use `fontSize.label2` instead. */
16
+ export declare const agentsFontSizeLabel2: string;
17
+ /** @deprecated Use `fontSize.label3` instead. */
18
+ export declare const agentsFontSizeLabel3: string;
19
+ /** @deprecated Use `fontWeight.regular` instead. */
20
+ export declare const agentsFontWeightRegular: string;
21
+ /** @deprecated Use `fontWeight.semiBold` instead. */
22
+ export declare const agentsFontWeightSemiBold: string;
@@ -0,0 +1,20 @@
1
+
2
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
3
+ import { registerSize, sizeForAllThemes } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/sizeUtils';
4
+ import { AGENTS_FLOATING_PANEL_GAP } from '@codingame/monaco-vscode-api/vscode/vs/sessions/common/layoutConstants';
5
+
6
+ registerSize(
7
+ "agents.layout.floatingPanelGap",
8
+ sizeForAllThemes(AGENTS_FLOATING_PANEL_GAP, "px"),
9
+ ( localize(3126, "Gap between floating panels in the Agents window."))
10
+ );
11
+ registerSize("agents.fontSize.heading1", sizeForAllThemes(26, "px"), ( localize(3127, "Heading 1 font size for the agents window (welcome screen title).")), ( localize(3128, "Deprecated: use `fontSize.heading1` instead.")));
12
+ registerSize("agents.fontSize.heading2", sizeForAllThemes(18, "px"), ( localize(3129, "Heading 2 font size for the agents window (title).")), ( localize(3130, "Deprecated: use `fontSize.heading2` instead.")));
13
+ registerSize("agents.fontSize.heading3", sizeForAllThemes(13, "px"), ( localize(3131, "Heading 3 font size for the agents window (subtitle).")), ( localize(3132, "Deprecated: use `fontSize.heading3` instead.")));
14
+ registerSize("agents.fontSize.body1", sizeForAllThemes(13, "px"), ( localize(3133, "Primary body font size for the agents window.")), ( localize(3134, "Deprecated: use `fontSize.body1` instead.")));
15
+ registerSize("agents.fontSize.body2", sizeForAllThemes(11, "px"), ( localize(3135, "Secondary body font size for the agents window.")), ( localize(3136, "Deprecated: use `fontSize.body2` instead.")));
16
+ registerSize("agents.fontSize.label1", sizeForAllThemes(12, "px"), ( localize(3137, "Label 1 font size for the agents window (section title, tabs).")), ( localize(3138, "Deprecated: use `fontSize.label1` instead.")));
17
+ registerSize("agents.fontSize.label2", sizeForAllThemes(11, "px"), ( localize(3139, "Label 2 font size for the agents window (metadata).")), ( localize(3140, "Deprecated: use `fontSize.label2` instead.")));
18
+ registerSize("agents.fontSize.label3", sizeForAllThemes(10, "px"), ( localize(3141, "Label 3 font size for the agents window (badge).")), ( localize(3142, "Deprecated: use `fontSize.label3` instead.")));
19
+ registerSize("agents.fontWeight.regular", sizeForAllThemes(400, ""), ( localize(3143, "Regular font weight (400) for the agents window.")), ( localize(3144, "Deprecated: use `fontWeight.regular` instead.")));
20
+ registerSize("agents.fontWeight.semiBold", sizeForAllThemes(600, ""), ( localize(3145, "SemiBold font weight (600) for the agents window.")), ( localize(3146, "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(18265, "Icon for the 'Manage' action in the theme selection quick pick.")));
56
+ const manageExtensionIcon = registerIcon("theme-selection-manage-extension", Codicon.gear, ( localize(20408, "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(18266, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
187
+ quickpick.placeholder = ( localize(20409, "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(18267, "Error while searching for themes: {0}", this._searchError))}`,
241
+ label: `$(error) ${( localize(20410, "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
- 18268,
263
+ 20411,
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(18269, "OK"))
268
+ primaryButton: ( localize(20412, "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(18270, "Installing Extension {0}...", galleryExtension.displayName))
276
+ title: ( localize(20413, "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(18271, "Color Theme")),
427
+ title: ( localize2(20414, "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(18272, "Select Color Theme for System Dark Mode");
439
+ return localize(20415, "Select Color Theme for System Dark Mode");
440
440
  case ColorScheme.LIGHT:
441
- return localize(18273, "Select Color Theme for System Light Mode");
441
+ return localize(20416, "Select Color Theme for System Light Mode");
442
442
  case ColorScheme.HIGH_CONTRAST_DARK:
443
- return localize(18274, "Select Color Theme for High Contrast Dark Mode");
443
+ return localize(20417, "Select Color Theme for High Contrast Dark Mode");
444
444
  case ColorScheme.HIGH_CONTRAST_LIGHT:
445
- return localize(18275, "Select Color Theme for High Contrast Light Mode");
445
+ return localize(20418, "Select Color Theme for High Contrast Light Mode");
446
446
  default:
447
- return localize(18276, "Select Color Theme (detect system color mode disabled)");
447
+ return localize(20419, "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(18277, "Detect system color mode enabled. Click to configure.")) : ( localize(18278, "Detect system color mode disabled. Click to configure.")),
455
+ tooltip: preferredColorScheme ? ( localize(20420, "Detect system color mode enabled. Click to configure.")) : ( localize(20421, "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(18279, "Install Additional Color Themes...")),
461
- browseMessage: "$(plus) " + ( localize(18280, "Browse Additional Color Themes...")),
460
+ installMessage: ( localize(20422, "Install Additional Color Themes...")),
461
+ browseMessage: "$(plus) " + ( localize(20423, "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(18281, "light themes")));
479
- const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(18282, "dark themes")));
480
- const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(18283, "high contrast themes")));
478
+ const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(20424, "light themes")));
479
+ const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(20425, "dark themes")));
480
+ const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(20426, "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(18284, "File Icon Theme")),
503
+ title: ( localize2(20427, "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(18285, "Install Additional File Icon Themes...")),
512
- placeholderMessage: ( localize(18286, "Select File Icon Theme (Up/Down Keys to Preview)")),
511
+ installMessage: ( localize(20428, "Install Additional File Icon Themes...")),
512
+ placeholderMessage: ( localize(20429, "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(18287, "file icon themes"))
521
+ label: ( localize(20430, "file icon themes"))
522
522
  }, {
523
523
  id: "",
524
524
  theme: FileIconThemeData.noIconTheme,
525
- label: ( localize(18288, "None")),
526
- description: ( localize(18289, "Disable File Icons"))
525
+ label: ( localize(20431, "None")),
526
+ description: ( localize(20432, "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(18290, "Product Icon Theme")),
536
+ title: ( localize2(20433, "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(18291, "Install Additional Product Icon Themes...")),
545
- browseMessage: "$(plus) " + ( localize(18292, "Browse Additional Product Icon Themes...")),
546
- placeholderMessage: ( localize(18293, "Select Product Icon Theme (Up/Down Keys to Preview)")),
544
+ installMessage: ( localize(20434, "Install Additional Product Icon Themes...")),
545
+ browseMessage: "$(plus) " + ( localize(20435, "Browse Additional Product Icon Themes...")),
546
+ placeholderMessage: ( localize(20436, "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(18294, "product icon themes"))
555
+ label: ( localize(20437, "product icon themes"))
556
556
  }, {
557
557
  id: DEFAULT_PRODUCT_ICON_THEME_ID,
558
558
  theme: ProductIconThemeData.defaultTheme,
559
- label: ( localize(18295, "Default"))
559
+ label: ( localize(20438, "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(18296, "Try New Default Themes")),
568
+ title: ( localize2(20439, "Try New Default Themes")),
569
569
  category: Categories.Preferences,
570
570
  f1: true
571
571
  });
@@ -581,15 +581,15 @@ registerAction2(class extends Action2 {
581
581
  ThemeSettingDefaults.COLOR_THEME_DARK
582
582
  ]));
583
583
  const themes = allThemes.filter(t => ( newThemeSettingsIds.has(t.settingsId)));
584
- const items = ( themes.map(t => ({
584
+ const items = themes.map(t => ({
585
585
  id: t.id,
586
586
  label: t.label,
587
587
  description: t.description
588
- })));
588
+ }));
589
589
  const disposables = ( new DisposableStore());
590
590
  const picker = disposables.add(quickInputService.createQuickPick());
591
591
  picker.items = items;
592
- picker.placeholder = ( localize(18297, "Pick a new default theme"));
592
+ picker.placeholder = ( localize(20440, "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(18298, "Default Light")),
679
- [ThemeSettingDefaults.COLOR_THEME_DARK]: ( localize(18299, "Default Dark"))
678
+ [ThemeSettingDefaults.COLOR_THEME_LIGHT]: ( localize(20441, "Default Light")),
679
+ [ThemeSettingDefaults.COLOR_THEME_DARK]: ( localize(20442, "Default Dark"))
680
680
  };
681
681
  function toEntry(theme) {
682
682
  const settingId = theme.settingsId ?? undefined;
@@ -704,7 +704,7 @@ function toEntries(themes, label) {
704
704
  }
705
705
  return t1.label.localeCompare(t2.label);
706
706
  };
707
- const entries = ( themes.map(toEntry)).sort(sorter);
707
+ const entries = themes.map(toEntry).sort(sorter);
708
708
  if (entries.length > 0 && label) {
709
709
  entries.unshift({
710
710
  type: "separator",
@@ -715,13 +715,13 @@ function toEntries(themes, label) {
715
715
  }
716
716
  const configureButton = {
717
717
  iconClass: ThemeIcon.asClassName(manageExtensionIcon),
718
- tooltip: ( localize(18300, "Manage Extension"))
718
+ tooltip: ( localize(20443, "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(18301, "Generate Color Theme From Current Settings")),
724
+ title: ( localize2(20444, "Generate Color Theme From Current Settings")),
725
725
  category: Categories.Developer,
726
726
  f1: true
727
727
  });
@@ -730,7 +730,7 @@ registerAction2(class extends Action2 {
730
730
  const themeService = accessor.get(IWorkbenchThemeService);
731
731
  const theme = themeService.getColorTheme();
732
732
  const colors = ( Registry.as(Extensions.ColorContribution)).getColors();
733
- const colorIds = ( colors.filter(c => !c.deprecationMessage).map(c => c.id)).sort();
733
+ const colorIds = colors.filter(c => !c.deprecationMessage).map(c => c.id).sort();
734
734
  const resultingColors = {};
735
735
  const inherited = [];
736
736
  for (const colorId of colorIds) {
@@ -776,7 +776,7 @@ registerAction2(class extends Action2 {
776
776
  constructor() {
777
777
  super({
778
778
  id: toggleLightDarkThemesCommandId,
779
- title: ( localize2(18302, "Toggle between Light/Dark Themes")),
779
+ title: ( localize2(20445, "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
- 18303,
791
+ 20446,
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(18304, "Open Settings")),
796
+ label: ( localize(20447, "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(18305, "Browse Color Themes in Marketplace")),
835
+ title: ( localize2(20448, "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(18306, "Themes")),
876
+ title: ( localize(20449, "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(18307, "&&Themes")),
882
+ title: ( localize(20450, "&&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(18271, "Color Theme"))
890
+ title: ( localize(20414, "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(18308, "File Icon Theme"))
897
+ title: ( localize(20451, "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(18309, "Product Icon Theme"))
904
+ title: ( localize(20452, "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
- 20075,
152
+ 22218,
153
153
  "Problems parsing file icons file: {0}",
154
- ( errors.map(e => getParseErrorMessage(e.error))).join(", ")
154
+ errors.map(e => getParseErrorMessage(e.error)).join(", ")
155
155
  )))));
156
156
  } else if (getNodeType(contentValue) !== "object") {
157
- return Promise.reject(( new Error(( localize(20076, "Invalid format for file icons theme file: Object expected.")))));
157
+ return Promise.reject(( new Error(( localize(22219, "Invalid format for file icons theme file: Object expected.")))));
158
158
  }
159
159
  return Promise.resolve(contentValue);
160
160
  });
@@ -346,9 +346,9 @@ class FileIconThemeLoader {
346
346
  const defaultFontSize = this.tryNormalizeFontSize(fonts[0].size) || "150%";
347
347
  fonts.forEach(font => {
348
348
  const fontSrcs = new Builder();
349
- fontSrcs.push(...( font.src.map(
349
+ fontSrcs.push(...font.src.map(
350
350
  l => inline`${asCSSUrl(resolvePath(l.path))} format(${stringValue(l.format)})`
351
- )));
351
+ ));
352
352
  cssRules.push(
353
353
  inline`@font-face { src: ${fontSrcs.join(", ")}; font-family: ${stringValue(font.id)}; font-weight: ${identValue(font.weight)}; font-style: ${identValue(font.style)}; font-display: block; }`
354
354
  );
@@ -43,7 +43,7 @@ class ProductIconThemeData {
43
43
  this.isLoaded = true;
44
44
  if (warnings.length) {
45
45
  logService.error(( localize(
46
- 20077,
46
+ 22220,
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(20078, "Default")), ThemeSettingDefaults.PRODUCT_ICON_THEME));
79
+ themeData = ProductIconThemeData._defaultProductIconTheme = ( new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(22221, "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
- 20079,
190
+ 22222,
191
191
  "Problems parsing product icons file: {0}",
192
- ( parseErrors.map(e => getParseErrorMessage(e.error))).join(", ")
192
+ parseErrors.map(e => getParseErrorMessage(e.error)).join(", ")
193
193
  )))));
194
194
  } else if (getNodeType(contentValue) !== "object") {
195
- return Promise.reject(( new Error(( localize(20080, "Invalid format for product icons theme file: Object expected.")))));
195
+ return Promise.reject(( new Error(( localize(22223, "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
- 20081,
198
+ 22224,
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(20082, "Invalid font weight in font '{0}'. Ignoring setting.", font.id)));
211
+ warnings.push(( localize(22225, "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(20083, "Invalid font style in font '{0}'. Ignoring setting.", font.id)));
217
+ warnings.push(( localize(22226, "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(20084, "Invalid font source in font '{0}'. Ignoring source.", font.id)));
229
+ warnings.push(( localize(22227, "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
- 20085,
241
+ 22228,
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
- 20086,
248
+ 22229,
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(20087, "Skipping icon definition '{0}'. Unknown font.", iconId)));
271
+ warnings.push(( localize(22230, "Skipping icon definition '{0}'. Unknown font.", iconId)));
272
272
  }
273
273
  } else {
274
- warnings.push(( localize(20088, "Skipping icon definition '{0}': Needs to be defined", iconId)));
274
+ warnings.push(( localize(22231, "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
- 20089,
294
+ 22232,
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(20090, "Keep It")),
299
+ label: ( localize(22233, "Keep It")),
300
300
  run: () => resolve(true)
301
301
  }), toAction({
302
302
  id: "themeUpdated.noThanks",
303
- label: ( localize(20091, "No Thanks")),
303
+ label: ( localize(22234, "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
- 20092,
508
+ 22235,
509
509
  "Unable to load {0}: {1}",
510
510
  themeData.location?.toString(),
511
511
  error.message
@@ -812,7 +812,7 @@ const injectedFontFaces = ( new Set());
812
812
  function injectFontFacesInHead(styleSheetContent) {
813
813
  const sheet = new mainWindow.CSSStyleSheet();
814
814
  sheet.replaceSync(styleSheetContent);
815
- const fontFaces = ( Array.from(sheet.cssRules).filter(rule => rule instanceof mainWindow.CSSFontFaceRule).map(r => r.cssText));
815
+ const fontFaces = Array.from(sheet.cssRules).filter(rule => rule instanceof mainWindow.CSSFontFaceRule).map(r => r.cssText);
816
816
  const missingFontFaces = fontFaces.filter(fontFace => !( injectedFontFaces.has(fontFace)));
817
817
  if (missingFontFaces.length > 0) {
818
818
  const fontFaceStyleSheet = new mainWindow.CSSStyleSheet();