@codingame/monaco-vscode-theme-service-override 31.0.0 → 32.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +53 -47
- package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +2 -2
- package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +12 -12
- package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +8 -6
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +16 -16
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +38 -38
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +7 -7
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +42 -37
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +21 -21
|
@@ -16,7 +16,7 @@ function registerColorThemeExtensionPoint() {
|
|
|
16
16
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
17
17
|
extensionPoint: "themes",
|
|
18
18
|
jsonSchema: {
|
|
19
|
-
description: ( localize(
|
|
19
|
+
description: ( localize(17090, "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(17091, "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(17092, "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
|
+
17093,
|
|
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
|
+
17094,
|
|
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(17095, "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(17096, "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(17097, "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
|
+
17098,
|
|
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(17099, "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(17100, "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(17101, "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
|
+
17102,
|
|
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(17103, "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(17104, "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(17105, "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(17106, "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(17107, "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
|
+
17108,
|
|
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
|
+
17109,
|
|
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
|
+
17110,
|
|
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,
|