@codingame/monaco-vscode-theme-service-override 37.2.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.
- package/index.js +2 -1
- package/package.json +3 -3
- package/vscode/src/vs/sessions/common/sizes.d.ts +22 -0
- package/vscode/src/vs/sessions/common/sizes.js +20 -0
- package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +49 -49
- package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +5 -5
- package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +13 -13
- package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +5 -5
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +16 -16
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +39 -39
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +7 -7
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +55 -47
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +21 -21
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/activityBar.css +0 -301
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/commandCenter.css +0 -47
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/editorBorder.css +0 -96
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/fontRamp.css +0 -206
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/keyboardFocusOnly.css +0 -44
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/notificationsDialogs.css +0 -146
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/padding.css +0 -377
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/paneHeaders.css +0 -123
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/roundedCorners.css +0 -287
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/sashHandles.css +0 -94
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/shadows.css +0 -52
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/statusBar.css +0 -97
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/tabs.css +0 -1044
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/titlebar.css +0 -19
- package/vscode/src/vs/workbench/contrib/modernUI/browser/modernUI.contribution.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/modernUI/browser/modernUI.contribution.js +0 -219
- package/vscode/src/vs/workbench/services/themes/browser/modernTabColorCustomizations.d.ts +0 -1
- package/vscode/src/vs/workbench/services/themes/browser/modernTabColorCustomizations.js +0 -255
|
@@ -32,7 +32,7 @@ const COLOR_THEME_CONFIGURATION_SETTINGS_TAG = "colorThemeConfiguration";
|
|
|
32
32
|
const colorThemeSettingSchema = {
|
|
33
33
|
type: "string",
|
|
34
34
|
markdownDescription: ( localize(
|
|
35
|
-
|
|
35
|
+
22340,
|
|
36
36
|
"Specifies the color theme used in the workbench when {0} is not enabled.",
|
|
37
37
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
38
38
|
)),
|
|
@@ -41,12 +41,12 @@ const colorThemeSettingSchema = {
|
|
|
41
41
|
enum: colorThemeSettingEnum,
|
|
42
42
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
43
43
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
44
|
-
errorMessage: ( localize(
|
|
44
|
+
errorMessage: ( localize(22341, "Theme is unknown or not installed."))
|
|
45
45
|
};
|
|
46
46
|
const preferredDarkThemeSettingSchema = {
|
|
47
47
|
type: "string",
|
|
48
48
|
markdownDescription: ( localize(
|
|
49
|
-
|
|
49
|
+
22342,
|
|
50
50
|
"Specifies the color theme when system color mode is dark and {0} is enabled.",
|
|
51
51
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
52
52
|
)),
|
|
@@ -55,12 +55,12 @@ const preferredDarkThemeSettingSchema = {
|
|
|
55
55
|
enum: colorThemeSettingEnum,
|
|
56
56
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
57
57
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
58
|
-
errorMessage: ( localize(
|
|
58
|
+
errorMessage: ( localize(22341, "Theme is unknown or not installed."))
|
|
59
59
|
};
|
|
60
60
|
const preferredLightThemeSettingSchema = {
|
|
61
61
|
type: "string",
|
|
62
62
|
markdownDescription: ( localize(
|
|
63
|
-
|
|
63
|
+
22343,
|
|
64
64
|
"Specifies the color theme when system color mode is light and {0} is enabled.",
|
|
65
65
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
66
66
|
)),
|
|
@@ -69,12 +69,12 @@ const preferredLightThemeSettingSchema = {
|
|
|
69
69
|
enum: colorThemeSettingEnum,
|
|
70
70
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
71
71
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
72
|
-
errorMessage: ( localize(
|
|
72
|
+
errorMessage: ( localize(22341, "Theme is unknown or not installed."))
|
|
73
73
|
};
|
|
74
74
|
const preferredHCDarkThemeSettingSchema = {
|
|
75
75
|
type: "string",
|
|
76
76
|
markdownDescription: ( localize(
|
|
77
|
-
|
|
77
|
+
22344,
|
|
78
78
|
"Specifies the color theme when in high contrast dark mode and {0} is enabled.",
|
|
79
79
|
formatSettingAsLink(ThemeSettings.DETECT_HC)
|
|
80
80
|
)),
|
|
@@ -83,12 +83,12 @@ const preferredHCDarkThemeSettingSchema = {
|
|
|
83
83
|
enum: colorThemeSettingEnum,
|
|
84
84
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
85
85
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
86
|
-
errorMessage: ( localize(
|
|
86
|
+
errorMessage: ( localize(22341, "Theme is unknown or not installed."))
|
|
87
87
|
};
|
|
88
88
|
const preferredHCLightThemeSettingSchema = {
|
|
89
89
|
type: "string",
|
|
90
90
|
markdownDescription: ( localize(
|
|
91
|
-
|
|
91
|
+
22345,
|
|
92
92
|
"Specifies the color theme when in high contrast light mode and {0} is enabled.",
|
|
93
93
|
formatSettingAsLink(ThemeSettings.DETECT_HC)
|
|
94
94
|
)),
|
|
@@ -97,12 +97,12 @@ const preferredHCLightThemeSettingSchema = {
|
|
|
97
97
|
enum: colorThemeSettingEnum,
|
|
98
98
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
99
99
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
100
|
-
errorMessage: ( localize(
|
|
100
|
+
errorMessage: ( localize(22341, "Theme is unknown or not installed."))
|
|
101
101
|
};
|
|
102
102
|
const detectColorSchemeSettingSchema = {
|
|
103
103
|
type: "boolean",
|
|
104
104
|
markdownDescription: ( localize(
|
|
105
|
-
|
|
105
|
+
22346,
|
|
106
106
|
"If enabled, will automatically select a color theme based on the system color mode. If the system color mode is dark, {0} is used, else {1}.",
|
|
107
107
|
formatSettingAsLink(ThemeSettings.PREFERRED_DARK_THEME),
|
|
108
108
|
formatSettingAsLink(ThemeSettings.PREFERRED_LIGHT_THEME)
|
|
@@ -117,7 +117,7 @@ const detectColorSchemeSettingSchema = {
|
|
|
117
117
|
};
|
|
118
118
|
const colorCustomizationsSchema = {
|
|
119
119
|
type: "object",
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(22347, "Overrides colors from the currently selected color theme.")),
|
|
121
121
|
allOf: [{
|
|
122
122
|
$ref: workbenchColorsSchemaId
|
|
123
123
|
}],
|
|
@@ -130,28 +130,28 @@ const fileIconThemeSettingSchema = {
|
|
|
130
130
|
type: ["string", "null"],
|
|
131
131
|
default: ThemeSettingDefaults.FILE_ICON_THEME,
|
|
132
132
|
description: ( localize(
|
|
133
|
-
|
|
133
|
+
22348,
|
|
134
134
|
"Specifies the file icon theme used in the workbench or 'null' to not show any file icons."
|
|
135
135
|
)),
|
|
136
136
|
enum: [null],
|
|
137
|
-
enumItemLabels: [( localize(
|
|
138
|
-
enumDescriptions: [( localize(
|
|
139
|
-
errorMessage: ( localize(
|
|
137
|
+
enumItemLabels: [( localize(22349, "None"))],
|
|
138
|
+
enumDescriptions: [( localize(22350, "No file icons"))],
|
|
139
|
+
errorMessage: ( localize(22351, "File icon theme is unknown or not installed."))
|
|
140
140
|
};
|
|
141
141
|
const productIconThemeSettingSchema = {
|
|
142
142
|
type: ["string", "null"],
|
|
143
143
|
default: ThemeSettingDefaults.PRODUCT_ICON_THEME,
|
|
144
|
-
description: ( localize(
|
|
144
|
+
description: ( localize(22352, "Specifies the product icon theme used.")),
|
|
145
145
|
enum: [ThemeSettingDefaults.PRODUCT_ICON_THEME],
|
|
146
|
-
enumItemLabels: [( localize(
|
|
147
|
-
enumDescriptions: [( localize(
|
|
148
|
-
errorMessage: ( localize(
|
|
146
|
+
enumItemLabels: [( localize(22353, "Default"))],
|
|
147
|
+
enumDescriptions: [( localize(22354, "Default"))],
|
|
148
|
+
errorMessage: ( localize(22355, "Product icon theme is unknown or not installed."))
|
|
149
149
|
};
|
|
150
150
|
const detectHCSchemeSettingSchema = {
|
|
151
151
|
type: "boolean",
|
|
152
152
|
default: true,
|
|
153
153
|
markdownDescription: ( localize(
|
|
154
|
-
|
|
154
|
+
22356,
|
|
155
155
|
"If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme. The high contrast theme to use is specified by {0} and {1}.",
|
|
156
156
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_DARK_THEME),
|
|
157
157
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_LIGHT_THEME)
|
|
@@ -195,31 +195,31 @@ const themeSpecificSettingKey = "^\\[[^\\]]*(\\]\\s*\\[[^\\]]*)*\\]$";
|
|
|
195
195
|
const tokenColorSchema = {
|
|
196
196
|
type: "object",
|
|
197
197
|
properties: {
|
|
198
|
-
comments: tokenGroupSettings(( localize(
|
|
199
|
-
strings: tokenGroupSettings(( localize(
|
|
200
|
-
keywords: tokenGroupSettings(( localize(
|
|
201
|
-
numbers: tokenGroupSettings(( localize(
|
|
202
|
-
types: tokenGroupSettings(( localize(
|
|
198
|
+
comments: tokenGroupSettings(( localize(22357, "Sets the colors and styles for comments"))),
|
|
199
|
+
strings: tokenGroupSettings(( localize(22358, "Sets the colors and styles for strings literals."))),
|
|
200
|
+
keywords: tokenGroupSettings(( localize(22359, "Sets the colors and styles for keywords."))),
|
|
201
|
+
numbers: tokenGroupSettings(( localize(22360, "Sets the colors and styles for number literals."))),
|
|
202
|
+
types: tokenGroupSettings(( localize(22361, "Sets the colors and styles for type declarations and references."))),
|
|
203
203
|
functions: tokenGroupSettings(( localize(
|
|
204
|
-
|
|
204
|
+
22362,
|
|
205
205
|
"Sets the colors and styles for functions declarations and references."
|
|
206
206
|
))),
|
|
207
207
|
variables: tokenGroupSettings(( localize(
|
|
208
|
-
|
|
208
|
+
22363,
|
|
209
209
|
"Sets the colors and styles for variables declarations and references."
|
|
210
210
|
))),
|
|
211
211
|
textMateRules: {
|
|
212
|
-
description: ( localize(
|
|
212
|
+
description: ( localize(22364, "Sets colors and styles using textmate theming rules (advanced).")),
|
|
213
213
|
$ref: textmateColorsSchemaId
|
|
214
214
|
},
|
|
215
215
|
semanticHighlighting: {
|
|
216
|
-
description: ( localize(
|
|
216
|
+
description: ( localize(22365, "Whether semantic highlighting should be enabled for this theme.")),
|
|
217
217
|
deprecationMessage: ( localize(
|
|
218
|
-
|
|
218
|
+
22366,
|
|
219
219
|
"Use `enabled` in `editor.semanticTokenColorCustomizations` setting instead."
|
|
220
220
|
)),
|
|
221
221
|
markdownDeprecationMessage: ( localize(
|
|
222
|
-
|
|
222
|
+
22367,
|
|
223
223
|
"Use `enabled` in {0} setting instead.",
|
|
224
224
|
formatSettingAsLink("editor.semanticTokenColorCustomizations")
|
|
225
225
|
)),
|
|
@@ -230,7 +230,7 @@ const tokenColorSchema = {
|
|
|
230
230
|
};
|
|
231
231
|
const tokenColorCustomizationSchema = {
|
|
232
232
|
description: ( localize(
|
|
233
|
-
|
|
233
|
+
22368,
|
|
234
234
|
"Overrides editor syntax colors and font style from the currently selected color theme."
|
|
235
235
|
)),
|
|
236
236
|
default: {},
|
|
@@ -247,14 +247,14 @@ const semanticTokenColorSchema = {
|
|
|
247
247
|
enabled: {
|
|
248
248
|
type: "boolean",
|
|
249
249
|
description: ( localize(
|
|
250
|
-
|
|
250
|
+
22369,
|
|
251
251
|
"Whether semantic highlighting is enabled or disabled for this theme"
|
|
252
252
|
)),
|
|
253
253
|
suggestSortText: "0_enabled"
|
|
254
254
|
},
|
|
255
255
|
rules: {
|
|
256
256
|
$ref: tokenStylingSchemaId,
|
|
257
|
-
description: ( localize(
|
|
257
|
+
description: ( localize(22370, "Semantic token styling rules for this theme.")),
|
|
258
258
|
suggestSortText: "0_rules"
|
|
259
259
|
}
|
|
260
260
|
},
|
|
@@ -262,7 +262,7 @@ const semanticTokenColorSchema = {
|
|
|
262
262
|
};
|
|
263
263
|
const semanticTokenColorCustomizationSchema = {
|
|
264
264
|
description: ( localize(
|
|
265
|
-
|
|
265
|
+
22371,
|
|
266
266
|
"Overrides editor semantic token color and styles from the currently selected color theme."
|
|
267
267
|
)),
|
|
268
268
|
default: {},
|
|
@@ -285,9 +285,17 @@ const tokenColorCustomizationConfiguration = {
|
|
|
285
285
|
configurationRegistry.registerConfiguration(tokenColorCustomizationConfiguration);
|
|
286
286
|
function updateColorThemeConfigurationSchemas(themes) {
|
|
287
287
|
themes.sort((a, b) => a.label.localeCompare(b.label));
|
|
288
|
-
colorThemeSettingEnum.splice(0, colorThemeSettingEnum.length, ...
|
|
289
|
-
colorThemeSettingEnumDescriptions.splice(
|
|
290
|
-
|
|
288
|
+
colorThemeSettingEnum.splice(0, colorThemeSettingEnum.length, ...themes.map(t => t.settingsId));
|
|
289
|
+
colorThemeSettingEnumDescriptions.splice(
|
|
290
|
+
0,
|
|
291
|
+
colorThemeSettingEnumDescriptions.length,
|
|
292
|
+
...themes.map(t => t.description || "")
|
|
293
|
+
);
|
|
294
|
+
colorThemeSettingEnumItemLabels.splice(
|
|
295
|
+
0,
|
|
296
|
+
colorThemeSettingEnumItemLabels.length,
|
|
297
|
+
...themes.map(t => t.label || "")
|
|
298
|
+
);
|
|
291
299
|
const themeSpecificWorkbenchColors = {
|
|
292
300
|
properties: {}
|
|
293
301
|
};
|
|
@@ -326,15 +334,15 @@ function updateColorThemeConfigurationSchemas(themes) {
|
|
|
326
334
|
configurationRegistry.notifyConfigurationSchemaUpdated(themeSettingsConfiguration, tokenColorCustomizationConfiguration);
|
|
327
335
|
}
|
|
328
336
|
function updateFileIconThemeConfigurationSchemas(themes) {
|
|
329
|
-
fileIconThemeSettingSchema.enum.splice(1, Number.MAX_VALUE, ...
|
|
330
|
-
fileIconThemeSettingSchema.enumItemLabels.splice(1, Number.MAX_VALUE, ...
|
|
331
|
-
fileIconThemeSettingSchema.enumDescriptions.splice(1, Number.MAX_VALUE, ...
|
|
337
|
+
fileIconThemeSettingSchema.enum.splice(1, Number.MAX_VALUE, ...themes.map(t => t.settingsId));
|
|
338
|
+
fileIconThemeSettingSchema.enumItemLabels.splice(1, Number.MAX_VALUE, ...themes.map(t => t.label));
|
|
339
|
+
fileIconThemeSettingSchema.enumDescriptions.splice(1, Number.MAX_VALUE, ...themes.map(t => t.description || ""));
|
|
332
340
|
configurationRegistry.notifyConfigurationSchemaUpdated(themeSettingsConfiguration);
|
|
333
341
|
}
|
|
334
342
|
function updateProductIconThemeConfigurationSchemas(themes) {
|
|
335
|
-
productIconThemeSettingSchema.enum.splice(1, Number.MAX_VALUE, ...
|
|
336
|
-
productIconThemeSettingSchema.enumItemLabels.splice(1, Number.MAX_VALUE, ...
|
|
337
|
-
productIconThemeSettingSchema.enumDescriptions.splice(1, Number.MAX_VALUE, ...
|
|
343
|
+
productIconThemeSettingSchema.enum.splice(1, Number.MAX_VALUE, ...themes.map(t => t.settingsId));
|
|
344
|
+
productIconThemeSettingSchema.enumItemLabels.splice(1, Number.MAX_VALUE, ...themes.map(t => t.label));
|
|
345
|
+
productIconThemeSettingSchema.enumDescriptions.splice(1, Number.MAX_VALUE, ...themes.map(t => t.description || ""));
|
|
338
346
|
configurationRegistry.notifyConfigurationSchemaUpdated(themeSettingsConfiguration);
|
|
339
347
|
}
|
|
340
348
|
const colorSchemeToPreferred = {
|
|
@@ -366,7 +374,7 @@ class ThemeConfiguration {
|
|
|
366
374
|
if (!textMateRules) {
|
|
367
375
|
return tokenColorCustomization;
|
|
368
376
|
}
|
|
369
|
-
const updatedRules =
|
|
377
|
+
const updatedRules = textMateRules.map(rule => {
|
|
370
378
|
const fontSize = rule.settings?.fontSize;
|
|
371
379
|
const lineHeight = rule.settings?.lineHeight;
|
|
372
380
|
if (fontSize !== undefined && lineHeight === undefined) {
|
|
@@ -379,7 +387,7 @@ class ThemeConfiguration {
|
|
|
379
387
|
};
|
|
380
388
|
}
|
|
381
389
|
return rule;
|
|
382
|
-
})
|
|
390
|
+
});
|
|
383
391
|
const updatedTokenColorCustomization = {
|
|
384
392
|
...tokenColorCustomization,
|
|
385
393
|
textMateRules: updatedRules
|
|
@@ -16,7 +16,7 @@ function registerColorThemeExtensionPoint() {
|
|
|
16
16
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
17
17
|
extensionPoint: "themes",
|
|
18
18
|
jsonSchema: {
|
|
19
|
-
description: ( localize(
|
|
19
|
+
description: ( localize(22372, "Contributes textmate color themes.")),
|
|
20
20
|
type: "array",
|
|
21
21
|
items: {
|
|
22
22
|
type: "object",
|
|
@@ -30,16 +30,16 @@ function registerColorThemeExtensionPoint() {
|
|
|
30
30
|
}],
|
|
31
31
|
properties: {
|
|
32
32
|
id: {
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(22373, "Id of the color theme as used in the user settings.")),
|
|
34
34
|
type: "string"
|
|
35
35
|
},
|
|
36
36
|
label: {
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(22374, "Label of the color theme as shown in the UI.")),
|
|
38
38
|
type: "string"
|
|
39
39
|
},
|
|
40
40
|
uiTheme: {
|
|
41
41
|
markdownDescription: ( localize(
|
|
42
|
-
|
|
42
|
+
22375,
|
|
43
43
|
"Base theme defining the colors around the editor: `vs` is the light color theme, `vs-dark` is the dark color theme. `hc-black` is the dark high contrast theme, `hc-light` is the light high contrast theme."
|
|
44
44
|
)),
|
|
45
45
|
enum: [
|
|
@@ -51,7 +51,7 @@ function registerColorThemeExtensionPoint() {
|
|
|
51
51
|
},
|
|
52
52
|
path: {
|
|
53
53
|
markdownDescription: ( localize(
|
|
54
|
-
|
|
54
|
+
22376,
|
|
55
55
|
"Path of the tmTheme file. The path is relative to the extension folder and is typically `./colorthemes/awesome-color-theme.json`."
|
|
56
56
|
)),
|
|
57
57
|
type: "string"
|
|
@@ -66,7 +66,7 @@ function registerFileIconThemeExtensionPoint() {
|
|
|
66
66
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
67
67
|
extensionPoint: "iconThemes",
|
|
68
68
|
jsonSchema: {
|
|
69
|
-
description: ( localize(
|
|
69
|
+
description: ( localize(22377, "Contributes file icon themes.")),
|
|
70
70
|
type: "array",
|
|
71
71
|
items: {
|
|
72
72
|
type: "object",
|
|
@@ -79,16 +79,16 @@ function registerFileIconThemeExtensionPoint() {
|
|
|
79
79
|
}],
|
|
80
80
|
properties: {
|
|
81
81
|
id: {
|
|
82
|
-
description: ( localize(
|
|
82
|
+
description: ( localize(22378, "Id of the file icon theme as used in the user settings.")),
|
|
83
83
|
type: "string"
|
|
84
84
|
},
|
|
85
85
|
label: {
|
|
86
|
-
description: ( localize(
|
|
86
|
+
description: ( localize(22379, "Label of the file icon theme as shown in the UI.")),
|
|
87
87
|
type: "string"
|
|
88
88
|
},
|
|
89
89
|
path: {
|
|
90
90
|
description: ( localize(
|
|
91
|
-
|
|
91
|
+
22380,
|
|
92
92
|
"Path of the file icon theme definition file. The path is relative to the extension folder and is typically './fileicons/awesome-icon-theme.json'."
|
|
93
93
|
)),
|
|
94
94
|
type: "string"
|
|
@@ -103,7 +103,7 @@ function registerProductIconThemeExtensionPoint() {
|
|
|
103
103
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
104
104
|
extensionPoint: "productIconThemes",
|
|
105
105
|
jsonSchema: {
|
|
106
|
-
description: ( localize(
|
|
106
|
+
description: ( localize(22381, "Contributes product icon themes.")),
|
|
107
107
|
type: "array",
|
|
108
108
|
items: {
|
|
109
109
|
type: "object",
|
|
@@ -116,16 +116,16 @@ function registerProductIconThemeExtensionPoint() {
|
|
|
116
116
|
}],
|
|
117
117
|
properties: {
|
|
118
118
|
id: {
|
|
119
|
-
description: ( localize(
|
|
119
|
+
description: ( localize(22382, "Id of the product icon theme as used in the user settings.")),
|
|
120
120
|
type: "string"
|
|
121
121
|
},
|
|
122
122
|
label: {
|
|
123
|
-
description: ( localize(
|
|
123
|
+
description: ( localize(22383, "Label of the product icon theme as shown in the UI.")),
|
|
124
124
|
type: "string"
|
|
125
125
|
},
|
|
126
126
|
path: {
|
|
127
127
|
description: ( localize(
|
|
128
|
-
|
|
128
|
+
22384,
|
|
129
129
|
"Path of the product icon theme definition file. The path is relative to the extension folder and is typically './producticons/awesome-product-icon-theme.json'."
|
|
130
130
|
)),
|
|
131
131
|
type: "string"
|
|
@@ -147,19 +147,19 @@ class ThemeDataRenderer extends Disposable {
|
|
|
147
147
|
render(manifest) {
|
|
148
148
|
const markdown = ( new MarkdownString());
|
|
149
149
|
if (manifest.contributes?.themes) {
|
|
150
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
150
|
+
markdown.appendMarkdown(`### ${( localize(22385, "Color Themes"))}\n\n`);
|
|
151
151
|
for (const theme of manifest.contributes.themes) {
|
|
152
152
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
if (manifest.contributes?.iconThemes) {
|
|
156
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
156
|
+
markdown.appendMarkdown(`### ${( localize(22386, "File Icon Themes"))}\n\n`);
|
|
157
157
|
for (const theme of manifest.contributes.iconThemes) {
|
|
158
158
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
if (manifest.contributes?.productIconThemes) {
|
|
162
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
162
|
+
markdown.appendMarkdown(`### ${( localize(22387, "Product Icon Themes"))}\n\n`);
|
|
163
163
|
for (const theme of manifest.contributes.productIconThemes) {
|
|
164
164
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
165
165
|
}
|
|
@@ -172,7 +172,7 @@ class ThemeDataRenderer extends Disposable {
|
|
|
172
172
|
}
|
|
173
173
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
174
174
|
id: "themes",
|
|
175
|
-
label: ( localize(
|
|
175
|
+
label: ( localize(22388, "Themes")),
|
|
176
176
|
access: {
|
|
177
177
|
canToggle: false
|
|
178
178
|
},
|
|
@@ -234,13 +234,13 @@ class ThemeRegistry {
|
|
|
234
234
|
log
|
|
235
235
|
) {
|
|
236
236
|
if (!Array.isArray(themeContributions)) {
|
|
237
|
-
log?.error(( localize(
|
|
237
|
+
log?.error(( localize(22389, "Extension point `{0}` must be an array.", this.themesExtPoint.name)));
|
|
238
238
|
return resultingThemes;
|
|
239
239
|
}
|
|
240
240
|
themeContributions.forEach(theme => {
|
|
241
241
|
if (!theme.path || !isString(theme.path)) {
|
|
242
242
|
log?.error(( localize(
|
|
243
|
-
|
|
243
|
+
22390,
|
|
244
244
|
"Expected string in `contributes.{0}.path`. Provided value: {1}",
|
|
245
245
|
this.themesExtPoint.name,
|
|
246
246
|
String(theme.path)
|
|
@@ -249,7 +249,7 @@ class ThemeRegistry {
|
|
|
249
249
|
}
|
|
250
250
|
if (this.idRequired && (!theme.id || !isString(theme.id))) {
|
|
251
251
|
log?.error(( localize(
|
|
252
|
-
|
|
252
|
+
22391,
|
|
253
253
|
"Expected string in `contributes.{0}.id`. Provided value: {1}",
|
|
254
254
|
this.themesExtPoint.name,
|
|
255
255
|
String(theme.id)
|
|
@@ -259,7 +259,7 @@ class ThemeRegistry {
|
|
|
259
259
|
const themeLocation = joinPath(extensionLocation, theme.path);
|
|
260
260
|
if (!isEqualOrParent(themeLocation, extensionLocation)) {
|
|
261
261
|
log?.warn(( localize(
|
|
262
|
-
|
|
262
|
+
22392,
|
|
263
263
|
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
264
264
|
this.themesExtPoint.name,
|
|
265
265
|
themeLocation.path,
|