@codingame/monaco-vscode-theme-service-override 23.3.0 → 24.1.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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IThemeExtensionPoint } from "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService";
1
+ import type { IThemeExtensionPoint } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService";
2
2
  import type { IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
3
3
  type PartialIThemeExtensionPoint = Partial<IThemeExtensionPoint> & Pick<IThemeExtensionPoint, "id" | "path">;
4
4
  export default function getServiceOverride(): IEditorOverrideServices;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-theme-service-override",
3
- "version": "23.3.0",
3
+ "version": "24.1.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - theme service-override",
6
6
  "keywords": [],
@@ -15,11 +15,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-10416640-ca84-5eff-95ce-dea977ccba7a-common": "23.3.0",
19
- "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.3.0",
20
- "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "23.3.0",
21
- "@codingame/monaco-vscode-api": "23.3.0",
22
- "@codingame/monaco-vscode-files-service-override": "23.3.0"
18
+ "@codingame/monaco-vscode-api": "24.1.0",
19
+ "@codingame/monaco-vscode-files-service-override": "24.1.0"
23
20
  },
24
21
  "main": "index.js",
25
22
  "module": "index.js",
@@ -6,7 +6,7 @@ import { registerAction2, Action2, MenuId, MenuRegistry } from '@codingame/monac
6
6
  import { equalsIgnoreCase } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
7
7
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
8
8
  import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
9
- import { ThemeSettings } from '@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService';
9
+ import { ThemeSettings } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService';
10
10
  import { IWorkbenchThemeService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService.service';
11
11
  import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
12
12
  import { IExtensionGalleryService, IExtensionManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
@@ -53,7 +53,7 @@ import { defaultToggleStyles } from '@codingame/monaco-vscode-api/vscode/vs/plat
53
53
  import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
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(12582, 'Icon for the \'Manage\' action in the theme selection quick pick.')));
56
+ const manageExtensionIcon = registerIcon('theme-selection-manage-extension', Codicon.gear, ( localize(12722, '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";
@@ -161,7 +161,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
161
161
  quickpick.matchOnDescription = true;
162
162
  quickpick.buttons = [this.quickInputService.backButton];
163
163
  quickpick.title = 'Marketplace Themes';
164
- quickpick.placeholder = ( localize(12583, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
164
+ quickpick.placeholder = ( localize(12723, "Type to Search More. Select to Install. Up/Down Keys to Preview"));
165
165
  quickpick.canSelectMany = false;
166
166
  disposables.add(quickpick.onDidChangeValue(() => this.trigger(quickpick.value)));
167
167
  disposables.add(quickpick.onDidAccept(async (_) => {
@@ -213,7 +213,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
213
213
  items = items.concat({ label: '$(loading~spin) Searching for themes...', id: undefined, alwaysShow: true });
214
214
  }
215
215
  else if (items.length === 0 && this._searchError) {
216
- items = [{ label: `$(error) ${( localize(12584, 'Error while searching for themes: {0}', this._searchError))}`, id: undefined, alwaysShow: true }];
216
+ items = [{ label: `$(error) ${( localize(12724, 'Error while searching for themes: {0}', this._searchError))}`, id: undefined, alwaysShow: true }];
217
217
  }
218
218
  const activeItemId = quickpick.activeItems[0]?.id;
219
219
  const newActiveItem = activeItemId ? items.find(i => isItem(i) && i.id === activeItemId) : undefined;
@@ -232,12 +232,12 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
232
232
  this.extensionsWorkbenchService.openSearch(`@id:${galleryExtension.identifier.id}`);
233
233
  const result = await this.dialogService.confirm({
234
234
  message: ( localize(
235
- 12585,
235
+ 12725,
236
236
  "This will install extension '{0}' published by '{1}'. Do you want to continue?",
237
237
  galleryExtension.displayName,
238
238
  galleryExtension.publisherDisplayName
239
239
  )),
240
- primaryButton: ( localize(12586, "OK"))
240
+ primaryButton: ( localize(12726, "OK"))
241
241
  });
242
242
  if (!result.confirmed) {
243
243
  return false;
@@ -245,7 +245,7 @@ let MarketplaceThemesPicker = class MarketplaceThemesPicker {
245
245
  try {
246
246
  await this.progressService.withProgress({
247
247
  location: ProgressLocation.Notification,
248
- title: ( localize(12587, "Installing Extension {0}...", galleryExtension.displayName))
248
+ title: ( localize(12727, "Installing Extension {0}...", galleryExtension.displayName))
249
249
  }, async () => {
250
250
  await this.extensionManagementService.installFromGallery(galleryExtension, {
251
251
  isMachineScoped: false,
@@ -393,7 +393,7 @@ registerAction2(class extends Action2 {
393
393
  constructor() {
394
394
  super({
395
395
  id: SelectColorThemeCommandId,
396
- title: ( localize2(12588, 'Color Theme')),
396
+ title: ( localize2(12728, 'Color Theme')),
397
397
  category: Categories.Preferences,
398
398
  f1: true,
399
399
  keybinding: {
@@ -404,12 +404,12 @@ registerAction2(class extends Action2 {
404
404
  }
405
405
  getTitle(colorScheme) {
406
406
  switch (colorScheme) {
407
- case ColorScheme.DARK: return localize(12589, "Select Color Theme for System Dark Mode");
408
- case ColorScheme.LIGHT: return localize(12590, "Select Color Theme for System Light Mode");
409
- case ColorScheme.HIGH_CONTRAST_DARK: return localize(12591, "Select Color Theme for High Contrast Dark Mode");
410
- case ColorScheme.HIGH_CONTRAST_LIGHT: return localize(12592, "Select Color Theme for High Contrast Light Mode");
407
+ case ColorScheme.DARK: return localize(12729, "Select Color Theme for System Dark Mode");
408
+ case ColorScheme.LIGHT: return localize(12730, "Select Color Theme for System Light Mode");
409
+ case ColorScheme.HIGH_CONTRAST_DARK: return localize(12731, "Select Color Theme for High Contrast Dark Mode");
410
+ case ColorScheme.HIGH_CONTRAST_LIGHT: return localize(12732, "Select Color Theme for High Contrast Light Mode");
411
411
  default:
412
- return localize(12593, "Select Color Theme (detect system color mode disabled)");
412
+ return localize(12733, "Select Color Theme (detect system color mode disabled)");
413
413
  }
414
414
  }
415
415
  async run(accessor) {
@@ -419,7 +419,7 @@ registerAction2(class extends Action2 {
419
419
  let modeConfigureToggle;
420
420
  if (preferredColorScheme) {
421
421
  modeConfigureToggle = ( new Toggle({
422
- title: ( localize(12594, 'Detect system color mode enabled. Click to configure.')),
422
+ title: ( localize(12734, 'Detect system color mode enabled. Click to configure.')),
423
423
  icon: Codicon.colorMode,
424
424
  isChecked: false,
425
425
  ...defaultToggleStyles
@@ -427,15 +427,15 @@ registerAction2(class extends Action2 {
427
427
  }
428
428
  else {
429
429
  modeConfigureToggle = ( new Toggle({
430
- title: ( localize(12595, 'Detect system color mode disabled. Click to configure.')),
430
+ title: ( localize(12735, 'Detect system color mode disabled. Click to configure.')),
431
431
  icon: Codicon.colorMode,
432
432
  isChecked: false,
433
433
  ...defaultToggleStyles
434
434
  }));
435
435
  }
436
436
  const options = {
437
- installMessage: ( localize(12596, "Install Additional Color Themes...")),
438
- browseMessage: '$(plus) ' + ( localize(12597, "Browse Additional Color Themes...")),
437
+ installMessage: ( localize(12736, "Install Additional Color Themes...")),
438
+ browseMessage: '$(plus) ' + ( localize(12737, "Browse Additional Color Themes...")),
439
439
  placeholderMessage: this.getTitle(preferredColorScheme),
440
440
  marketplaceTag: 'category:themes',
441
441
  toggles: [modeConfigureToggle],
@@ -450,9 +450,9 @@ registerAction2(class extends Action2 {
450
450
  const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
451
451
  const themes = await themeService.getColorThemes();
452
452
  const currentTheme = themeService.getColorTheme();
453
- const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(12598, "light themes")));
454
- const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(12599, "dark themes")));
455
- const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(12600, "high contrast themes")));
453
+ const lightEntries = toEntries(themes.filter(t => t.type === ColorScheme.LIGHT), ( localize(12738, "light themes")));
454
+ const darkEntries = toEntries(themes.filter(t => t.type === ColorScheme.DARK), ( localize(12739, "dark themes")));
455
+ const hcEntries = toEntries(themes.filter(t => isHighContrast(t.type)), ( localize(12740, "high contrast themes")));
456
456
  let picks;
457
457
  switch (preferredColorScheme) {
458
458
  case ColorScheme.DARK:
@@ -475,7 +475,7 @@ registerAction2(class extends Action2 {
475
475
  constructor() {
476
476
  super({
477
477
  id: SelectFileIconThemeCommandId,
478
- title: ( localize2(12601, 'File Icon Theme')),
478
+ title: ( localize2(12741, 'File Icon Theme')),
479
479
  category: Categories.Preferences,
480
480
  f1: true
481
481
  });
@@ -483,8 +483,8 @@ registerAction2(class extends Action2 {
483
483
  async run(accessor) {
484
484
  const themeService = accessor.get(IWorkbenchThemeService);
485
485
  const options = {
486
- installMessage: ( localize(12602, "Install Additional File Icon Themes...")),
487
- placeholderMessage: ( localize(12603, "Select File Icon Theme (Up/Down Keys to Preview)")),
486
+ installMessage: ( localize(12742, "Install Additional File Icon Themes...")),
487
+ placeholderMessage: ( localize(12743, "Select File Icon Theme (Up/Down Keys to Preview)")),
488
488
  marketplaceTag: 'tag:icon-theme'
489
489
  };
490
490
  const setTheme = (theme, settingsTarget) => themeService.setFileIconTheme(theme, settingsTarget);
@@ -492,8 +492,8 @@ registerAction2(class extends Action2 {
492
492
  const instantiationService = accessor.get(IInstantiationService);
493
493
  const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
494
494
  const picks = [
495
- { type: 'separator', label: ( localize(12604, 'file icon themes')) },
496
- { id: '', theme: FileIconThemeData.noIconTheme, label: ( localize(12605, 'None')), description: ( localize(12606, 'Disable File Icons')) },
495
+ { type: 'separator', label: ( localize(12744, 'file icon themes')) },
496
+ { id: '', theme: FileIconThemeData.noIconTheme, label: ( localize(12745, 'None')), description: ( localize(12746, 'Disable File Icons')) },
497
497
  ...toEntries(await themeService.getFileIconThemes()),
498
498
  ];
499
499
  await picker.openQuickPick(picks, themeService.getFileIconTheme());
@@ -504,7 +504,7 @@ registerAction2(class extends Action2 {
504
504
  constructor() {
505
505
  super({
506
506
  id: SelectProductIconThemeCommandId,
507
- title: ( localize2(12607, 'Product Icon Theme')),
507
+ title: ( localize2(12747, 'Product Icon Theme')),
508
508
  category: Categories.Preferences,
509
509
  f1: true
510
510
  });
@@ -512,9 +512,9 @@ registerAction2(class extends Action2 {
512
512
  async run(accessor) {
513
513
  const themeService = accessor.get(IWorkbenchThemeService);
514
514
  const options = {
515
- installMessage: ( localize(12608, "Install Additional Product Icon Themes...")),
516
- browseMessage: '$(plus) ' + ( localize(12609, "Browse Additional Product Icon Themes...")),
517
- placeholderMessage: ( localize(12610, "Select Product Icon Theme (Up/Down Keys to Preview)")),
515
+ installMessage: ( localize(12748, "Install Additional Product Icon Themes...")),
516
+ browseMessage: '$(plus) ' + ( localize(12749, "Browse Additional Product Icon Themes...")),
517
+ placeholderMessage: ( localize(12750, "Select Product Icon Theme (Up/Down Keys to Preview)")),
518
518
  marketplaceTag: 'tag:product-icon-theme'
519
519
  };
520
520
  const setTheme = (theme, settingsTarget) => themeService.setProductIconTheme(theme, settingsTarget);
@@ -522,8 +522,8 @@ registerAction2(class extends Action2 {
522
522
  const instantiationService = accessor.get(IInstantiationService);
523
523
  const picker = instantiationService.createInstance(InstalledThemesPicker, options, setTheme, getMarketplaceColorThemes);
524
524
  const picks = [
525
- { type: 'separator', label: ( localize(12611, 'product icon themes')) },
526
- { id: DEFAULT_PRODUCT_ICON_THEME_ID, theme: ProductIconThemeData.defaultTheme, label: ( localize(12612, 'Default')) },
525
+ { type: 'separator', label: ( localize(12751, 'product icon themes')) },
526
+ { id: DEFAULT_PRODUCT_ICON_THEME_ID, theme: ProductIconThemeData.defaultTheme, label: ( localize(12752, 'Default')) },
527
527
  ...toEntries(await themeService.getProductIconThemes()),
528
528
  ];
529
529
  await picker.openQuickPick(picks, themeService.getProductIconTheme());
@@ -581,13 +581,13 @@ function toEntries(themes, label) {
581
581
  }
582
582
  const configureButton = {
583
583
  iconClass: ThemeIcon.asClassName(manageExtensionIcon),
584
- tooltip: ( localize(12613, "Manage Extension")),
584
+ tooltip: ( localize(12753, "Manage Extension")),
585
585
  };
586
586
  registerAction2(class extends Action2 {
587
587
  constructor() {
588
588
  super({
589
589
  id: 'workbench.action.generateColorTheme',
590
- title: ( localize2(12614, 'Generate Color Theme From Current Settings')),
590
+ title: ( localize2(12754, 'Generate Color Theme From Current Settings')),
591
591
  category: Categories.Developer,
592
592
  f1: true
593
593
  });
@@ -637,7 +637,7 @@ registerAction2(class extends Action2 {
637
637
  constructor() {
638
638
  super({
639
639
  id: toggleLightDarkThemesCommandId,
640
- title: ( localize2(12615, 'Toggle between Light/Dark Themes')),
640
+ title: ( localize2(12755, 'Toggle between Light/Dark Themes')),
641
641
  category: Categories.Preferences,
642
642
  f1: true,
643
643
  });
@@ -649,13 +649,13 @@ registerAction2(class extends Action2 {
649
649
  const preferencesService = accessor.get(IPreferencesService);
650
650
  if (configurationService.getValue(ThemeSettings.DETECT_COLOR_SCHEME)) {
651
651
  const message = ( localize(
652
- 12616,
652
+ 12756,
653
653
  "Cannot toggle between light and dark themes when `{0}` is enabled in settings.",
654
654
  ThemeSettings.DETECT_COLOR_SCHEME
655
655
  ));
656
656
  notificationService.prompt(Severity.Info, message, [
657
657
  {
658
- label: ( localize(12617, "Open Settings")),
658
+ label: ( localize(12757, "Open Settings")),
659
659
  run: () => {
660
660
  return preferencesService.openUserSettings({ query: ThemeSettings.DETECT_COLOR_SCHEME });
661
661
  }
@@ -693,7 +693,7 @@ registerAction2(class extends Action2 {
693
693
  constructor() {
694
694
  super({
695
695
  id: browseColorThemesInMarketplaceCommandId,
696
- title: ( localize2(12618, 'Browse Color Themes in Marketplace')),
696
+ title: ( localize2(12758, 'Browse Color Themes in Marketplace')),
697
697
  category: Categories.Preferences,
698
698
  f1: true,
699
699
  });
@@ -734,13 +734,13 @@ registerAction2(class extends Action2 {
734
734
  });
735
735
  const ThemesSubMenu = ( new MenuId('ThemesSubMenu'));
736
736
  MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
737
- title: ( localize(12619, "Themes")),
737
+ title: ( localize(12759, "Themes")),
738
738
  submenu: ThemesSubMenu,
739
739
  group: '2_configuration',
740
740
  order: 7
741
741
  });
742
742
  MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
743
- title: ( localize(12620, "&&Themes")),
743
+ title: ( localize(12760, "&&Themes")),
744
744
  submenu: ThemesSubMenu,
745
745
  group: '2_configuration',
746
746
  order: 7
@@ -748,21 +748,21 @@ MenuRegistry.appendMenuItem(MenuId.MenubarPreferencesMenu, {
748
748
  MenuRegistry.appendMenuItem(ThemesSubMenu, {
749
749
  command: {
750
750
  id: SelectColorThemeCommandId,
751
- title: ( localize(12588, 'Color Theme'))
751
+ title: ( localize(12728, 'Color Theme'))
752
752
  },
753
753
  order: 1
754
754
  });
755
755
  MenuRegistry.appendMenuItem(ThemesSubMenu, {
756
756
  command: {
757
757
  id: SelectFileIconThemeCommandId,
758
- title: ( localize(12621, "File Icon Theme"))
758
+ title: ( localize(12761, "File Icon Theme"))
759
759
  },
760
760
  order: 2
761
761
  });
762
762
  MenuRegistry.appendMenuItem(ThemesSubMenu, {
763
763
  command: {
764
764
  id: SelectProductIconThemeCommandId,
765
- title: ( localize(12622, "Product Icon Theme"))
765
+ title: ( localize(12762, "Product Icon Theme"))
766
766
  },
767
767
  order: 3
768
768
  });
@@ -1,5 +1,5 @@
1
1
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
2
- import { ExtensionData, IThemeExtensionPoint, IWorkbenchFileIconTheme } from "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService";
2
+ import { ExtensionData, IThemeExtensionPoint, IWorkbenchFileIconTheme } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService";
3
3
  import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
4
4
  import { IExtensionResourceLoaderService } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service";
5
5
  import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
@@ -3,7 +3,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
3
3
  import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
4
4
  import { dirname, joinPath } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
5
5
  import { parse, getNodeType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/json';
6
- import { ExtensionData } from '@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService';
6
+ import { ExtensionData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService';
7
7
  import { getParseErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/jsonErrorMessages';
8
8
  import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
9
9
  import { fontColorRegex, fontSizeRegex } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
@@ -141,13 +141,13 @@ class FileIconThemeLoader {
141
141
  const contentValue = parse(content, errors);
142
142
  if (errors.length > 0) {
143
143
  return Promise.reject(( new Error(( localize(
144
- 14119,
144
+ 14260,
145
145
  "Problems parsing file icons file: {0}",
146
146
  ( errors.map(e => getParseErrorMessage(e.error))).join(', ')
147
147
  )))));
148
148
  }
149
149
  else if (getNodeType(contentValue) !== 'object') {
150
- return Promise.reject(( new Error(( localize(14120, "Invalid format for file icons theme file: Object expected.")))));
150
+ return Promise.reject(( new Error(( localize(14261, "Invalid format for file icons theme file: Object expected.")))));
151
151
  }
152
152
  return Promise.resolve(contentValue);
153
153
  });
@@ -1,5 +1,5 @@
1
1
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
2
- import { ExtensionData, IThemeExtensionPoint, IWorkbenchProductIconTheme } from "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService";
2
+ import { ExtensionData, IThemeExtensionPoint, IWorkbenchProductIconTheme } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService";
3
3
  import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
4
4
  import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
5
5
  import { IconDefinition, IconContribution } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry";
@@ -3,7 +3,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
3
3
  import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
4
4
  import { dirname, joinPath } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
5
5
  import { parse, getNodeType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/json';
6
- import { ThemeSettingDefaults, ExtensionData } from '@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService';
6
+ import { ThemeSettingDefaults, ExtensionData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService';
7
7
  import { getParseErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/jsonErrorMessages';
8
8
  import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
9
9
  import { isObject, isString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
@@ -39,7 +39,7 @@ class ProductIconThemeData {
39
39
  this.isLoaded = true;
40
40
  if (warnings.length) {
41
41
  logService.error(( localize(
42
- 14121,
42
+ 14262,
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(14122, 'Default')), ThemeSettingDefaults.PRODUCT_ICON_THEME));
73
+ themeData = ProductIconThemeData._defaultProductIconTheme = ( new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(14263, '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
- 14123,
160
+ 14264,
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(14124, "Invalid format for product icons theme file: Object expected.")))));
166
+ return Promise.reject(( new Error(( localize(14265, "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
- 14125,
170
+ 14266,
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(14126, 'Invalid font weight in font \'{0}\'. Ignoring setting.', font.id)));
184
+ warnings.push(( localize(14267, '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(14127, 'Invalid font style in font \'{0}\'. Ignoring setting.', font.id)));
191
+ warnings.push(( localize(14268, '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(14128, 'Invalid font source in font \'{0}\'. Ignoring source.', font.id)));
201
+ warnings.push(( localize(14269, '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
- 14129,
210
+ 14270,
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
- 14130,
218
+ 14271,
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(14131, 'Skipping icon definition \'{0}\'. Unknown font.', iconId)));
236
+ warnings.push(( localize(14272, 'Skipping icon definition \'{0}\'. Unknown font.', iconId)));
237
237
  }
238
238
  }
239
239
  else {
240
- warnings.push(( localize(14132, 'Skipping icon definition \'{0}\': Needs to be defined', iconId)));
240
+ warnings.push(( localize(14273, 'Skipping icon definition \'{0}\': Needs to be defined', iconId)));
241
241
  }
242
242
  }
243
243
  return { iconDefinitions };
@@ -1,5 +1,5 @@
1
1
  import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
2
- import { IWorkbenchColorTheme, IWorkbenchFileIconTheme, IWorkbenchProductIconTheme, ThemeSettingTarget } from "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService";
2
+ import { IWorkbenchColorTheme, IWorkbenchFileIconTheme, IWorkbenchProductIconTheme, ThemeSettingTarget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService";
3
3
  import { IWorkbenchThemeService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService.service";
4
4
  import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
5
5
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
@@ -7,7 +7,7 @@ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
7
7
  import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
8
8
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
9
9
  import { FileIconThemeData } from "./fileIconThemeData.js";
10
- import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
10
+ import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service";
11
11
  import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
12
12
  import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
13
13
  import { IExtensionResourceLoaderService } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service";
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
3
3
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
4
  import { isUndefined, isString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
5
5
  import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
6
- import { ThemeSettingDefaults, COLOR_THEME_LIGHT_INITIAL_COLORS, COLOR_THEME_DARK_INITIAL_COLORS, ThemeSettings, ExtensionData } from '@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService';
6
+ import { ThemeSettingDefaults, COLOR_THEME_LIGHT_INITIAL_COLORS, COLOR_THEME_DARK_INITIAL_COLORS, ThemeSettings, ExtensionData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService';
7
7
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
8
8
  import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
9
9
  import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
@@ -11,14 +11,14 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
11
11
  import { onUnexpectedError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
12
12
  import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
13
13
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
14
- import { ColorThemeData } from '@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/colorThemeData';
14
+ import { ColorThemeData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/colorThemeData';
15
15
  import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService';
16
16
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
17
17
  import { registerFileIconThemeSchemas } from '../common/fileIconThemeSchema.js';
18
18
  import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
19
19
  import { FileIconThemeData, FileIconThemeLoader } from './fileIconThemeData.js';
20
20
  import { createStyleSheet } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/domStylesheets';
21
- import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
21
+ import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
22
22
  import { FileChangeType } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
23
23
  import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
24
24
  import { joinPath, isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
@@ -369,7 +369,7 @@ let WorkbenchThemeService = class WorkbenchThemeService extends Disposable {
369
369
  }
370
370
  catch (error) {
371
371
  throw ( new Error(( localize(
372
- 14133,
372
+ 14274,
373
373
  "Unable to load {0}: {1}",
374
374
  themeData.location?.toString(),
375
375
  error.message
@@ -13,7 +13,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/mini
13
13
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
14
14
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
15
15
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
16
- import { tokenStylingSchemaId } from '@codingame/monaco-vscode-10416640-ca84-5eff-95ce-dea977ccba7a-common/vscode/vs/platform/theme/common/tokenClassificationRegistry';
16
+ import { tokenStylingSchemaId } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/tokenClassificationRegistry';
17
17
 
18
18
  const textMateScopes = [
19
19
  'comment',
@@ -136,31 +136,31 @@ const textmateColorSchema = {
136
136
  },
137
137
  settings: {
138
138
  type: 'object',
139
- description: ( localize(14164, 'Colors and styles for the token.')),
139
+ description: ( localize(14305, 'Colors and styles for the token.')),
140
140
  properties: {
141
141
  foreground: {
142
142
  type: 'string',
143
- description: ( localize(14165, 'Foreground color for the token.')),
143
+ description: ( localize(14306, 'Foreground color for the token.')),
144
144
  format: 'color-hex',
145
145
  default: '#ff0000'
146
146
  },
147
147
  background: {
148
148
  type: 'string',
149
- deprecationMessage: ( localize(14166, 'Token background colors are currently not supported.'))
149
+ deprecationMessage: ( localize(14307, 'Token background colors are currently not supported.'))
150
150
  },
151
151
  fontStyle: {
152
152
  type: 'string',
153
153
  description: ( localize(
154
- 14167,
154
+ 14308,
155
155
  'Font style of the rule: \'italic\', \'bold\', \'underline\', \'strikethrough\' or a combination. The empty string unsets inherited settings.'
156
156
  )),
157
157
  pattern: '^(\\s*\\b(italic|bold|underline|strikethrough))*\\s*$',
158
158
  patternErrorMessage: ( localize(
159
- 14168,
159
+ 14309,
160
160
  'Font style must be \'italic\', \'bold\', \'underline\', \'strikethrough\' or a combination or the empty string.'
161
161
  )),
162
162
  defaultSnippets: [
163
- { label: ( localize(14169, 'None (clear inherited style)')), bodyText: '""' },
163
+ { label: ( localize(14310, 'None (clear inherited style)')), bodyText: '""' },
164
164
  { body: 'italic' },
165
165
  { body: 'bold' },
166
166
  { body: 'underline' },
@@ -189,10 +189,10 @@ const textmateColorSchema = {
189
189
  properties: {
190
190
  name: {
191
191
  type: 'string',
192
- description: ( localize(14170, 'Description of the rule.'))
192
+ description: ( localize(14311, 'Description of the rule.'))
193
193
  },
194
194
  scope: {
195
- description: ( localize(14171, 'Scope selector against which this rule matches.')),
195
+ description: ( localize(14312, 'Scope selector against which this rule matches.')),
196
196
  anyOf: [
197
197
  {
198
198
  enum: textMateScopes
@@ -231,28 +231,28 @@ const colorThemeSchema = {
231
231
  allowTrailingCommas: true,
232
232
  properties: {
233
233
  colors: {
234
- description: ( localize(14172, 'Colors in the workbench')),
234
+ description: ( localize(14313, 'Colors in the workbench')),
235
235
  $ref: workbenchColorsSchemaId,
236
236
  additionalProperties: false
237
237
  },
238
238
  tokenColors: {
239
239
  anyOf: [{
240
240
  type: 'string',
241
- description: ( localize(14173, 'Path to a tmTheme file (relative to the current file).'))
241
+ description: ( localize(14314, 'Path to a tmTheme file (relative to the current file).'))
242
242
  },
243
243
  {
244
- description: ( localize(14174, 'Colors for syntax highlighting')),
244
+ description: ( localize(14315, 'Colors for syntax highlighting')),
245
245
  $ref: textmateColorsSchemaId
246
246
  }
247
247
  ]
248
248
  },
249
249
  semanticHighlighting: {
250
250
  type: 'boolean',
251
- description: ( localize(14175, 'Whether semantic highlighting should be enabled for this theme.'))
251
+ description: ( localize(14316, 'Whether semantic highlighting should be enabled for this theme.'))
252
252
  },
253
253
  semanticTokenColors: {
254
254
  type: 'object',
255
- description: ( localize(14176, 'Colors for semantic tokens')),
255
+ description: ( localize(14317, 'Colors for semantic tokens')),
256
256
  $ref: tokenStylingSchemaId
257
257
  }
258
258
  }