@codingame/monaco-vscode-theme-service-override 1.85.1 → 1.85.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-theme-service-override",
3
- "version": "1.85.1",
3
+ "version": "1.85.2",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,8 +18,8 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@1.85.1",
21
+ "vscode": "npm:@codingame/monaco-vscode-api@1.85.2",
22
22
  "monaco-editor": "0.45.0",
23
- "@codingame/monaco-vscode-files-service-override": "1.85.1"
23
+ "@codingame/monaco-vscode-files-service-override": "1.85.2"
24
24
  }
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
2
  import * as nls from 'monaco-editor/esm/vs/nls.js';
3
- import * as types from 'monaco-editor/esm/vs/base/common/types.js';
3
+ import * as Types from 'monaco-editor/esm/vs/base/common/types.js';
4
4
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
5
5
  import { ThemeSettingDefaults, COLOR_THEME_LIGHT_INITIAL_COLORS, COLOR_THEME_DARK_INITIAL_COLORS, ThemeSettings, ExtensionData, VS_DARK_THEME, VS_LIGHT_THEME, VS_HC_THEME, VS_HC_LIGHT_THEME } from 'vscode/vscode/vs/workbench/services/themes/common/workbenchThemeService';
6
6
  import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
@@ -261,7 +261,7 @@ let WorkbenchThemeService = class WorkbenchThemeService {
261
261
  this.colorThemeRegistry.onDidChange(async (event) => {
262
262
  updateColorThemeConfigurationSchemas(event.themes);
263
263
  if (await this.restoreColorTheme()) {
264
- if (this.currentColorTheme.settingsId === ThemeSettingDefaults.COLOR_THEME_DARK && !types.isUndefined(prevColorId) && (await this.colorThemeRegistry.findThemeById(prevColorId))) {
264
+ if (this.currentColorTheme.settingsId === ThemeSettingDefaults.COLOR_THEME_DARK && !Types.isUndefined(prevColorId) && (await this.colorThemeRegistry.findThemeById(prevColorId))) {
265
265
  await this.setColorTheme(prevColorId, 'auto');
266
266
  prevColorId = undefined;
267
267
  }
@@ -279,7 +279,7 @@ let WorkbenchThemeService = class WorkbenchThemeService {
279
279
  this.fileIconThemeRegistry.onDidChange(async (event) => {
280
280
  updateFileIconThemeConfigurationSchemas(event.themes);
281
281
  if (await this.restoreFileIconTheme()) {
282
- if (this.currentFileIconTheme.id === DEFAULT_FILE_ICON_THEME_ID && !types.isUndefined(prevFileIconId) && this.fileIconThemeRegistry.findThemeById(prevFileIconId)) {
282
+ if (this.currentFileIconTheme.id === DEFAULT_FILE_ICON_THEME_ID && !Types.isUndefined(prevFileIconId) && this.fileIconThemeRegistry.findThemeById(prevFileIconId)) {
283
283
  await this.setFileIconTheme(prevFileIconId, 'auto');
284
284
  prevFileIconId = undefined;
285
285
  }
@@ -296,7 +296,7 @@ let WorkbenchThemeService = class WorkbenchThemeService {
296
296
  this.productIconThemeRegistry.onDidChange(async (event) => {
297
297
  updateProductIconThemeConfigurationSchemas(event.themes);
298
298
  if (await this.restoreProductIconTheme()) {
299
- if (this.currentProductIconTheme.id === DEFAULT_PRODUCT_ICON_THEME_ID && !types.isUndefined(prevProductIconId) && this.productIconThemeRegistry.findThemeById(prevProductIconId)) {
299
+ if (this.currentProductIconTheme.id === DEFAULT_PRODUCT_ICON_THEME_ID && !Types.isUndefined(prevProductIconId) && this.productIconThemeRegistry.findThemeById(prevProductIconId)) {
300
300
  await this.setProductIconTheme(prevProductIconId, 'auto');
301
301
  prevProductIconId = undefined;
302
302
  }
@@ -406,7 +406,7 @@ let WorkbenchThemeService = class WorkbenchThemeService {
406
406
  if (!themeIdOrTheme) {
407
407
  return null;
408
408
  }
409
- const themeId = types.isString(themeIdOrTheme) ? validateThemeId(themeIdOrTheme) : themeIdOrTheme.id;
409
+ const themeId = Types.isString(themeIdOrTheme) ? validateThemeId(themeIdOrTheme) : themeIdOrTheme.id;
410
410
  if (this.currentColorTheme.isLoaded && themeId === this.currentColorTheme.id) {
411
411
  if (settingsTarget !== 'preview') {
412
412
  this.currentColorTheme.toStorage(this.storageService);
@@ -541,7 +541,7 @@ let WorkbenchThemeService = class WorkbenchThemeService {
541
541
  if (iconThemeOrId === undefined) {
542
542
  iconThemeOrId = '';
543
543
  }
544
- const themeId = types.isString(iconThemeOrId) ? iconThemeOrId : iconThemeOrId.id;
544
+ const themeId = Types.isString(iconThemeOrId) ? iconThemeOrId : iconThemeOrId.id;
545
545
  if (themeId !== this.currentFileIconTheme.id || !this.currentFileIconTheme.isLoaded) {
546
546
  let newThemeData = this.fileIconThemeRegistry.findThemeById(themeId);
547
547
  if (!newThemeData && iconThemeOrId instanceof FileIconThemeData) {
@@ -631,7 +631,7 @@ let WorkbenchThemeService = class WorkbenchThemeService {
631
631
  if (iconThemeOrId === undefined) {
632
632
  iconThemeOrId = '';
633
633
  }
634
- const themeId = types.isString(iconThemeOrId) ? iconThemeOrId : iconThemeOrId.id;
634
+ const themeId = Types.isString(iconThemeOrId) ? iconThemeOrId : iconThemeOrId.id;
635
635
  if (themeId !== this.currentProductIconTheme.id || !this.currentProductIconTheme.isLoaded) {
636
636
  let newThemeData = this.productIconThemeRegistry.findThemeById(themeId);
637
637
  if (!newThemeData && iconThemeOrId instanceof ProductIconThemeData) {
@@ -4,7 +4,7 @@ import { Color } from 'monaco-editor/esm/vs/base/common/color.js';
4
4
  import { THEME_SCOPE_OPEN_PAREN, THEME_SCOPE_CLOSE_PAREN, THEME_SCOPE_WILDCARD, themeScopeRegex, ExtensionData, VS_HC_LIGHT_THEME, VS_HC_THEME, VS_LIGHT_THEME } from 'vscode/vscode/vs/workbench/services/themes/common/workbenchThemeService';
5
5
  import { convertSettings } from './themeCompatibility.js';
6
6
  import * as nls from 'monaco-editor/esm/vs/nls.js';
7
- import * as types from 'monaco-editor/esm/vs/base/common/types.js';
7
+ import * as Types from 'monaco-editor/esm/vs/base/common/types.js';
8
8
  import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
9
9
  import { Extensions, editorForeground, editorBackground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
10
10
  import { getThemeTypeSelector } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
@@ -86,7 +86,7 @@ class ColorThemeData {
86
86
  return color;
87
87
  }
88
88
  color = this.colorMap[colorId];
89
- if (useDefault !== false && types.isUndefined(color)) {
89
+ if (useDefault !== false && Types.isUndefined(color)) {
90
90
  color = this.getDefault(colorId);
91
91
  }
92
92
  return color;
@@ -251,7 +251,7 @@ class ColorThemeData {
251
251
  foregroundScore = score;
252
252
  foregroundThemingRule = themingRule;
253
253
  }
254
- if (score >= fontStyleScore && types.isString(settings.fontStyle)) {
254
+ if (score >= fontStyleScore && Types.isString(settings.fontStyle)) {
255
255
  fontStyle = settings.fontStyle;
256
256
  fontStyleScore = score;
257
257
  fontStyleThemingRule = themingRule;
@@ -284,7 +284,7 @@ class ColorThemeData {
284
284
  this.customColorMap = {};
285
285
  this.overwriteCustomColors(colors);
286
286
  const themeSpecificColors = this.getThemeSpecificColors(colors);
287
- if (types.isObject(themeSpecificColors)) {
287
+ if (Types.isObject(themeSpecificColors)) {
288
288
  this.overwriteCustomColors(themeSpecificColors);
289
289
  }
290
290
  this.tokenColorIndex = undefined;
@@ -304,7 +304,7 @@ class ColorThemeData {
304
304
  this.customSemanticHighlightingDeprecated = undefined;
305
305
  this.addCustomTokenColors(customTokenColors);
306
306
  const themeSpecificTokenColors = this.getThemeSpecificColors(customTokenColors);
307
- if (types.isObject(themeSpecificTokenColors)) {
307
+ if (Types.isObject(themeSpecificTokenColors)) {
308
308
  this.addCustomTokenColors(themeSpecificTokenColors);
309
309
  }
310
310
  this.tokenColorIndex = undefined;
@@ -320,7 +320,7 @@ class ColorThemeData {
320
320
  this.readSemanticTokenRules(semanticTokenColors.rules);
321
321
  }
322
322
  const themeSpecificColors = this.getThemeSpecificColors(semanticTokenColors);
323
- if (types.isObject(themeSpecificColors)) {
323
+ if (Types.isObject(themeSpecificColors)) {
324
324
  if (themeSpecificColors.enabled !== undefined) {
325
325
  this.customSemanticHighlighting = themeSpecificColors.enabled;
326
326
  }
@@ -799,8 +799,8 @@ function readSemanticTokenRule(selectorString, settings) {
799
799
  return undefined;
800
800
  }
801
801
  function isSemanticTokenColorizationSetting(style) {
802
- return style && (types.isString(style.foreground) || types.isString(style.fontStyle) || types.isBoolean(style.italic)
803
- || types.isBoolean(style.underline) || types.isBoolean(style.strikethrough) || types.isBoolean(style.bold));
802
+ return style && (Types.isString(style.foreground) || Types.isString(style.fontStyle) || Types.isBoolean(style.italic)
803
+ || Types.isBoolean(style.underline) || Types.isBoolean(style.strikethrough) || Types.isBoolean(style.bold));
804
804
  }
805
805
  class TokenColorIndex {
806
806
  constructor() {
@@ -1,5 +1,5 @@
1
1
  import * as nls from 'monaco-editor/esm/vs/nls.js';
2
- import * as types from 'monaco-editor/esm/vs/base/common/types.js';
2
+ import * as Types from 'monaco-editor/esm/vs/base/common/types.js';
3
3
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
4
4
  import { Extensions } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
5
5
  import { textmateColorsSchemaId, textmateColorGroupSchemaId } from './colorThemeSchema.js';
@@ -419,13 +419,13 @@ class ThemeConfiguration {
419
419
  }
420
420
  findAutoConfigurationTarget(key) {
421
421
  const settings = this.configurationService.inspect(key);
422
- if (!types.isUndefined(settings.workspaceFolderValue)) {
422
+ if (!Types.isUndefined(settings.workspaceFolderValue)) {
423
423
  return 6 ;
424
424
  }
425
- else if (!types.isUndefined(settings.workspaceValue)) {
425
+ else if (!Types.isUndefined(settings.workspaceValue)) {
426
426
  return 5 ;
427
427
  }
428
- else if (!types.isUndefined(settings.userRemote)) {
428
+ else if (!Types.isUndefined(settings.userRemote)) {
429
429
  return 4 ;
430
430
  }
431
431
  return 2 ;
@@ -443,7 +443,7 @@ class ThemeConfiguration {
443
443
  return Promise.resolve(undefined);
444
444
  }
445
445
  else if (value === settings.defaultValue) {
446
- if (types.isUndefined(settings.userValue)) {
446
+ if (Types.isUndefined(settings.userValue)) {
447
447
  return Promise.resolve(undefined);
448
448
  }
449
449
  value = undefined;
@@ -1,5 +1,5 @@
1
1
  import * as nls from 'monaco-editor/esm/vs/nls.js';
2
- import * as types from 'monaco-editor/esm/vs/base/common/types.js';
2
+ import * as Types from 'monaco-editor/esm/vs/base/common/types.js';
3
3
  import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
4
4
  import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
5
5
  import { VS_DARK_THEME, VS_LIGHT_THEME, VS_HC_THEME, VS_HC_LIGHT_THEME, ExtensionData } from 'vscode/vscode/vs/workbench/services/themes/common/workbenchThemeService';
@@ -191,7 +191,7 @@ class ThemeRegistry {
191
191
  return resultingThemes;
192
192
  }
193
193
  themeContributions.forEach(theme => {
194
- if (!theme.path || !types.isString(theme.path)) {
194
+ if (!theme.path || !Types.isString(theme.path)) {
195
195
  log?.error(( nls.localizeWithPath(
196
196
  'vs/workbench/services/themes/common/themeExtensionPoints',
197
197
  'reqpath',
@@ -201,7 +201,7 @@ class ThemeRegistry {
201
201
  )));
202
202
  return;
203
203
  }
204
- if (this.idRequired && (!theme.id || !types.isString(theme.id))) {
204
+ if (this.idRequired && (!theme.id || !Types.isString(theme.id))) {
205
205
  log?.error(( nls.localizeWithPath(
206
206
  'vs/workbench/services/themes/common/themeExtensionPoints',
207
207
  'reqid',