@codingame/monaco-vscode-theme-service-override 10.0.2 → 10.1.1
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/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/common/colorThemeSchema.js +13 -13
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +39 -39
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +36 -36
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +21 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-theme-service-override",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "10.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.1",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "10.1.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -138,13 +138,13 @@ class FileIconThemeLoader {
|
|
|
138
138
|
const contentValue = parse(content, errors);
|
|
139
139
|
if (errors.length > 0) {
|
|
140
140
|
return Promise.reject(( (new Error(( localize(
|
|
141
|
-
|
|
141
|
+
6926,
|
|
142
142
|
"Problems parsing file icons file: {0}",
|
|
143
143
|
( (errors.map(e => getParseErrorMessage(e.error)))).join(', ')
|
|
144
144
|
))))));
|
|
145
145
|
}
|
|
146
146
|
else if (getNodeType(contentValue) !== 'object') {
|
|
147
|
-
return Promise.reject(( (new Error(( localize(
|
|
147
|
+
return Promise.reject(( (new Error(( localize(6927, "Invalid format for file icons theme file: Object expected."))))));
|
|
148
148
|
}
|
|
149
149
|
return Promise.resolve(contentValue);
|
|
150
150
|
});
|
|
@@ -38,7 +38,7 @@ class ProductIconThemeData {
|
|
|
38
38
|
this.isLoaded = true;
|
|
39
39
|
if (warnings.length) {
|
|
40
40
|
logService.error(( localize(
|
|
41
|
-
|
|
41
|
+
6994,
|
|
42
42
|
"Problems processing product icons definitions in {0}:\n{1}",
|
|
43
43
|
(location.toString()),
|
|
44
44
|
warnings.join('\n')
|
|
@@ -69,7 +69,7 @@ class ProductIconThemeData {
|
|
|
69
69
|
static get defaultTheme() {
|
|
70
70
|
let themeData = ProductIconThemeData._defaultProductIconTheme;
|
|
71
71
|
if (!themeData) {
|
|
72
|
-
themeData = ProductIconThemeData._defaultProductIconTheme = ( (new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(
|
|
72
|
+
themeData = ProductIconThemeData._defaultProductIconTheme = ( (new ProductIconThemeData(DEFAULT_PRODUCT_ICON_THEME_ID, ( localize(6995, 'Default')), ThemeSettingDefaults.PRODUCT_ICON_THEME)));
|
|
73
73
|
themeData.isLoaded = true;
|
|
74
74
|
themeData.extensionData = undefined;
|
|
75
75
|
themeData.watch = false;
|
|
@@ -156,17 +156,17 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
156
156
|
const contentValue = parse(content, parseErrors);
|
|
157
157
|
if (parseErrors.length > 0) {
|
|
158
158
|
return Promise.reject(( (new Error(( localize(
|
|
159
|
-
|
|
159
|
+
6996,
|
|
160
160
|
"Problems parsing product icons file: {0}",
|
|
161
161
|
( (parseErrors.map(e => getParseErrorMessage(e.error)))).join(', ')
|
|
162
162
|
))))));
|
|
163
163
|
}
|
|
164
164
|
else if (getNodeType(contentValue) !== 'object') {
|
|
165
|
-
return Promise.reject(( (new Error(( localize(
|
|
165
|
+
return Promise.reject(( (new Error(( localize(6997, "Invalid format for product icons theme file: Object expected."))))));
|
|
166
166
|
}
|
|
167
167
|
else if (!contentValue.iconDefinitions || !Array.isArray(contentValue.fonts) || !contentValue.fonts.length) {
|
|
168
168
|
return Promise.reject(( (new Error(( localize(
|
|
169
|
-
|
|
169
|
+
6998,
|
|
170
170
|
"Invalid format for product icons theme file: Must contain iconDefinitions and fonts."
|
|
171
171
|
))))));
|
|
172
172
|
}
|
|
@@ -180,14 +180,14 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
180
180
|
fontWeight = font.weight;
|
|
181
181
|
}
|
|
182
182
|
else {
|
|
183
|
-
warnings.push(( localize(
|
|
183
|
+
warnings.push(( localize(6999, 'Invalid font weight in font \'{0}\'. Ignoring setting.', font.id)));
|
|
184
184
|
}
|
|
185
185
|
let fontStyle = undefined;
|
|
186
186
|
if (isString(font.style) && font.style.match(fontStyleRegex)) {
|
|
187
187
|
fontStyle = font.style;
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
190
|
-
warnings.push(( localize(
|
|
190
|
+
warnings.push(( localize(7000, 'Invalid font style in font \'{0}\'. Ignoring setting.', font.id)));
|
|
191
191
|
}
|
|
192
192
|
const sanitizedSrc = [];
|
|
193
193
|
if (Array.isArray(font.src)) {
|
|
@@ -197,7 +197,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
197
197
|
sanitizedSrc.push({ location: iconFontLocation, format: s.format });
|
|
198
198
|
}
|
|
199
199
|
else {
|
|
200
|
-
warnings.push(( localize(
|
|
200
|
+
warnings.push(( localize(7001, 'Invalid font source in font \'{0}\'. Ignoring source.', font.id)));
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -206,7 +206,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
206
206
|
}
|
|
207
207
|
else {
|
|
208
208
|
warnings.push(( localize(
|
|
209
|
-
|
|
209
|
+
7002,
|
|
210
210
|
'No valid font source in font \'{0}\'. Ignoring font definition.',
|
|
211
211
|
font.id
|
|
212
212
|
)));
|
|
@@ -214,7 +214,7 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
214
214
|
}
|
|
215
215
|
else {
|
|
216
216
|
warnings.push(( localize(
|
|
217
|
-
|
|
217
|
+
7003,
|
|
218
218
|
'Missing or invalid font id \'{0}\'. Skipping font definition.',
|
|
219
219
|
font.id
|
|
220
220
|
)));
|
|
@@ -232,11 +232,11 @@ function _loadProductIconThemeDocument(fileService, location, warnings) {
|
|
|
232
232
|
iconDefinitions.set(iconId, { fontCharacter: definition.fontCharacter, font });
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
235
|
-
warnings.push(( localize(
|
|
235
|
+
warnings.push(( localize(7004, 'Skipping icon definition \'{0}\'. Unknown font.', iconId)));
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
else {
|
|
239
|
-
warnings.push(( localize(
|
|
239
|
+
warnings.push(( localize(7005, 'Skipping icon definition \'{0}\'. Unknown fontCharacter.', iconId)));
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
return { iconDefinitions };
|
|
@@ -135,31 +135,31 @@ const textmateColorSchema = {
|
|
|
135
135
|
},
|
|
136
136
|
settings: {
|
|
137
137
|
type: 'object',
|
|
138
|
-
description: ( localize(
|
|
138
|
+
description: ( localize(6928, 'Colors and styles for the token.')),
|
|
139
139
|
properties: {
|
|
140
140
|
foreground: {
|
|
141
141
|
type: 'string',
|
|
142
|
-
description: ( localize(
|
|
142
|
+
description: ( localize(6929, 'Foreground color for the token.')),
|
|
143
143
|
format: 'color-hex',
|
|
144
144
|
default: '#ff0000'
|
|
145
145
|
},
|
|
146
146
|
background: {
|
|
147
147
|
type: 'string',
|
|
148
|
-
deprecationMessage: ( localize(
|
|
148
|
+
deprecationMessage: ( localize(6930, 'Token background colors are currently not supported.'))
|
|
149
149
|
},
|
|
150
150
|
fontStyle: {
|
|
151
151
|
type: 'string',
|
|
152
152
|
description: ( localize(
|
|
153
|
-
|
|
153
|
+
6931,
|
|
154
154
|
'Font style of the rule: \'italic\', \'bold\', \'underline\', \'strikethrough\' or a combination. The empty string unsets inherited settings.'
|
|
155
155
|
)),
|
|
156
156
|
pattern: '^(\\s*\\b(italic|bold|underline|strikethrough))*\\s*$',
|
|
157
157
|
patternErrorMessage: ( localize(
|
|
158
|
-
|
|
158
|
+
6932,
|
|
159
159
|
'Font style must be \'italic\', \'bold\', \'underline\', \'strikethrough\' or a combination or the empty string.'
|
|
160
160
|
)),
|
|
161
161
|
defaultSnippets: [
|
|
162
|
-
{ label: ( localize(
|
|
162
|
+
{ label: ( localize(6933, 'None (clear inherited style)')), bodyText: '""' },
|
|
163
163
|
{ body: 'italic' },
|
|
164
164
|
{ body: 'bold' },
|
|
165
165
|
{ body: 'underline' },
|
|
@@ -188,10 +188,10 @@ const textmateColorSchema = {
|
|
|
188
188
|
properties: {
|
|
189
189
|
name: {
|
|
190
190
|
type: 'string',
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(6934, 'Description of the rule.'))
|
|
192
192
|
},
|
|
193
193
|
scope: {
|
|
194
|
-
description: ( localize(
|
|
194
|
+
description: ( localize(6935, 'Scope selector against which this rule matches.')),
|
|
195
195
|
anyOf: [
|
|
196
196
|
{
|
|
197
197
|
enum: textMateScopes
|
|
@@ -230,28 +230,28 @@ const colorThemeSchema = {
|
|
|
230
230
|
allowTrailingCommas: true,
|
|
231
231
|
properties: {
|
|
232
232
|
colors: {
|
|
233
|
-
description: ( localize(
|
|
233
|
+
description: ( localize(6936, 'Colors in the workbench')),
|
|
234
234
|
$ref: workbenchColorsSchemaId,
|
|
235
235
|
additionalProperties: false
|
|
236
236
|
},
|
|
237
237
|
tokenColors: {
|
|
238
238
|
anyOf: [{
|
|
239
239
|
type: 'string',
|
|
240
|
-
description: ( localize(
|
|
240
|
+
description: ( localize(6937, 'Path to a tmTheme file (relative to the current file).'))
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
|
-
description: ( localize(
|
|
243
|
+
description: ( localize(6938, 'Colors for syntax highlighting')),
|
|
244
244
|
$ref: textmateColorsSchemaId
|
|
245
245
|
}
|
|
246
246
|
]
|
|
247
247
|
},
|
|
248
248
|
semanticHighlighting: {
|
|
249
249
|
type: 'boolean',
|
|
250
|
-
description: ( localize(
|
|
250
|
+
description: ( localize(6939, 'Whether semantic highlighting should be enabled for this theme.'))
|
|
251
251
|
},
|
|
252
252
|
semanticTokenColors: {
|
|
253
253
|
type: 'object',
|
|
254
|
-
description: ( localize(
|
|
254
|
+
description: ( localize(6940, 'Colors for semantic tokens')),
|
|
255
255
|
$ref: tokenStylingSchemaId
|
|
256
256
|
}
|
|
257
257
|
}
|
|
@@ -12,113 +12,113 @@ const schema = {
|
|
|
12
12
|
folderExpanded: {
|
|
13
13
|
type: 'string',
|
|
14
14
|
description: ( localize(
|
|
15
|
-
|
|
15
|
+
6888,
|
|
16
16
|
'The folder icon for expanded folders. The expanded folder icon is optional. If not set, the icon defined for folder will be shown.'
|
|
17
17
|
))
|
|
18
18
|
},
|
|
19
19
|
folder: {
|
|
20
20
|
type: 'string',
|
|
21
21
|
description: ( localize(
|
|
22
|
-
|
|
22
|
+
6889,
|
|
23
23
|
'The folder icon for collapsed folders, and if folderExpanded is not set, also for expanded folders.'
|
|
24
24
|
))
|
|
25
25
|
},
|
|
26
26
|
file: {
|
|
27
27
|
type: 'string',
|
|
28
28
|
description: ( localize(
|
|
29
|
-
|
|
29
|
+
6890,
|
|
30
30
|
'The default file icon, shown for all files that don\'t match any extension, filename or language id.'
|
|
31
31
|
))
|
|
32
32
|
},
|
|
33
33
|
rootFolder: {
|
|
34
34
|
type: 'string',
|
|
35
35
|
description: ( localize(
|
|
36
|
-
|
|
36
|
+
6891,
|
|
37
37
|
'The folder icon for collapsed root folders, and if rootFolderExpanded is not set, also for expanded root folders.'
|
|
38
38
|
))
|
|
39
39
|
},
|
|
40
40
|
rootFolderExpanded: {
|
|
41
41
|
type: 'string',
|
|
42
42
|
description: ( localize(
|
|
43
|
-
|
|
43
|
+
6892,
|
|
44
44
|
'The folder icon for expanded root folders. The expanded root folder icon is optional. If not set, the icon defined for root folder will be shown.'
|
|
45
45
|
))
|
|
46
46
|
},
|
|
47
47
|
rootFolderNames: {
|
|
48
48
|
type: 'object',
|
|
49
49
|
description: ( localize(
|
|
50
|
-
|
|
50
|
+
6893,
|
|
51
51
|
'Associates root folder names to icons. The object key is the root folder name. No patterns or wildcards are allowed. Root folder name matching is case insensitive.'
|
|
52
52
|
)),
|
|
53
53
|
additionalProperties: {
|
|
54
54
|
type: 'string',
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(6894, 'The ID of the icon definition for the association.'))
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
rootFolderNamesExpanded: {
|
|
59
59
|
type: 'object',
|
|
60
60
|
description: ( localize(
|
|
61
|
-
|
|
61
|
+
6895,
|
|
62
62
|
'Associates root folder names to icons for expanded root folders. The object key is the root folder name. No patterns or wildcards are allowed. Root folder name matching is case insensitive.'
|
|
63
63
|
)),
|
|
64
64
|
additionalProperties: {
|
|
65
65
|
type: 'string',
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(6896, 'The ID of the icon definition for the association.'))
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
folderNames: {
|
|
70
70
|
type: 'object',
|
|
71
71
|
description: ( localize(
|
|
72
|
-
|
|
72
|
+
6897,
|
|
73
73
|
'Associates folder names to icons. The object key is the folder name, not including any path segments. No patterns or wildcards are allowed. Folder name matching is case insensitive.'
|
|
74
74
|
)),
|
|
75
75
|
additionalProperties: {
|
|
76
76
|
type: 'string',
|
|
77
|
-
description: ( localize(
|
|
77
|
+
description: ( localize(6894, 'The ID of the icon definition for the association.'))
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
folderNamesExpanded: {
|
|
81
81
|
type: 'object',
|
|
82
82
|
description: ( localize(
|
|
83
|
-
|
|
83
|
+
6898,
|
|
84
84
|
'Associates folder names to icons for expanded folders. The object key is the folder name, not including any path segments. No patterns or wildcards are allowed. Folder name matching is case insensitive.'
|
|
85
85
|
)),
|
|
86
86
|
additionalProperties: {
|
|
87
87
|
type: 'string',
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(6899, 'The ID of the icon definition for the association.'))
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
fileExtensions: {
|
|
92
92
|
type: 'object',
|
|
93
93
|
description: ( localize(
|
|
94
|
-
|
|
94
|
+
6900,
|
|
95
95
|
'Associates file extensions to icons. The object key is the file extension name. The extension name is the last segment of a file name after the last dot (not including the dot). Extensions are compared case insensitive.'
|
|
96
96
|
)),
|
|
97
97
|
additionalProperties: {
|
|
98
98
|
type: 'string',
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(6901, 'The ID of the icon definition for the association.'))
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
fileNames: {
|
|
103
103
|
type: 'object',
|
|
104
104
|
description: ( localize(
|
|
105
|
-
|
|
105
|
+
6902,
|
|
106
106
|
'Associates file names to icons. The object key is the full file name, but not including any path segments. File name can include dots and a possible file extension. No patterns or wildcards are allowed. File name matching is case insensitive.'
|
|
107
107
|
)),
|
|
108
108
|
additionalProperties: {
|
|
109
109
|
type: 'string',
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(6903, 'The ID of the icon definition for the association.'))
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
languageIds: {
|
|
114
114
|
type: 'object',
|
|
115
115
|
description: ( localize(
|
|
116
|
-
|
|
116
|
+
6904,
|
|
117
117
|
'Associates languages to icons. The object key is the language id as defined in the language contribution point.'
|
|
118
118
|
)),
|
|
119
119
|
additionalProperties: {
|
|
120
120
|
type: 'string',
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(6905, 'The ID of the icon definition for the association.'))
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
associations: {
|
|
@@ -166,29 +166,29 @@ const schema = {
|
|
|
166
166
|
properties: {
|
|
167
167
|
fonts: {
|
|
168
168
|
type: 'array',
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(6906, 'Fonts that are used in the icon definitions.')),
|
|
170
170
|
items: {
|
|
171
171
|
type: 'object',
|
|
172
172
|
properties: {
|
|
173
173
|
id: {
|
|
174
174
|
type: 'string',
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(6907, 'The ID of the font.')),
|
|
176
176
|
pattern: fontIdRegex,
|
|
177
|
-
patternErrorMessage: ( localize(
|
|
177
|
+
patternErrorMessage: ( localize(6908, 'The ID must only contain letter, numbers, underscore and minus.'))
|
|
178
178
|
},
|
|
179
179
|
src: {
|
|
180
180
|
type: 'array',
|
|
181
|
-
description: ( localize(
|
|
181
|
+
description: ( localize(6909, 'The location of the font.')),
|
|
182
182
|
items: {
|
|
183
183
|
type: 'object',
|
|
184
184
|
properties: {
|
|
185
185
|
path: {
|
|
186
186
|
type: 'string',
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(6910, 'The font path, relative to the current file icon theme file.')),
|
|
188
188
|
},
|
|
189
189
|
format: {
|
|
190
190
|
type: 'string',
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(6911, 'The format of the font.')),
|
|
192
192
|
enum: ['woff', 'woff2', 'truetype', 'opentype', 'embedded-opentype', 'svg']
|
|
193
193
|
}
|
|
194
194
|
},
|
|
@@ -201,7 +201,7 @@ const schema = {
|
|
|
201
201
|
weight: {
|
|
202
202
|
type: 'string',
|
|
203
203
|
description: ( localize(
|
|
204
|
-
|
|
204
|
+
6912,
|
|
205
205
|
'The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values.'
|
|
206
206
|
)),
|
|
207
207
|
pattern: fontWeightRegex
|
|
@@ -209,7 +209,7 @@ const schema = {
|
|
|
209
209
|
style: {
|
|
210
210
|
type: 'string',
|
|
211
211
|
description: ( localize(
|
|
212
|
-
|
|
212
|
+
6913,
|
|
213
213
|
'The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values.'
|
|
214
214
|
)),
|
|
215
215
|
pattern: fontStyleRegex
|
|
@@ -217,7 +217,7 @@ const schema = {
|
|
|
217
217
|
size: {
|
|
218
218
|
type: 'string',
|
|
219
219
|
description: ( localize(
|
|
220
|
-
|
|
220
|
+
6914,
|
|
221
221
|
'The default size of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-size for valid values.'
|
|
222
222
|
)),
|
|
223
223
|
pattern: fontSizeRegex
|
|
@@ -232,33 +232,33 @@ const schema = {
|
|
|
232
232
|
iconDefinitions: {
|
|
233
233
|
type: 'object',
|
|
234
234
|
description: ( localize(
|
|
235
|
-
|
|
235
|
+
6915,
|
|
236
236
|
'Description of all icons that can be used when associating files to icons.'
|
|
237
237
|
)),
|
|
238
238
|
additionalProperties: {
|
|
239
239
|
type: 'object',
|
|
240
|
-
description: ( localize(
|
|
240
|
+
description: ( localize(6916, 'An icon definition. The object key is the ID of the definition.')),
|
|
241
241
|
properties: {
|
|
242
242
|
iconPath: {
|
|
243
243
|
type: 'string',
|
|
244
244
|
description: ( localize(
|
|
245
|
-
|
|
245
|
+
6917,
|
|
246
246
|
'When using a SVG or PNG: The path to the image. The path is relative to the icon set file.'
|
|
247
247
|
))
|
|
248
248
|
},
|
|
249
249
|
fontCharacter: {
|
|
250
250
|
type: 'string',
|
|
251
|
-
description: ( localize(
|
|
251
|
+
description: ( localize(6918, 'When using a glyph font: The character in the font to use.'))
|
|
252
252
|
},
|
|
253
253
|
fontColor: {
|
|
254
254
|
type: 'string',
|
|
255
255
|
format: 'color-hex',
|
|
256
|
-
description: ( localize(
|
|
256
|
+
description: ( localize(6919, 'When using a glyph font: The color to use.'))
|
|
257
257
|
},
|
|
258
258
|
fontSize: {
|
|
259
259
|
type: 'string',
|
|
260
260
|
description: ( localize(
|
|
261
|
-
|
|
261
|
+
6920,
|
|
262
262
|
'When using a font: The font size in percentage to the text font. If not set, defaults to the size in the font definition.'
|
|
263
263
|
)),
|
|
264
264
|
pattern: fontSizeRegex
|
|
@@ -266,7 +266,7 @@ const schema = {
|
|
|
266
266
|
fontId: {
|
|
267
267
|
type: 'string',
|
|
268
268
|
description: ( localize(
|
|
269
|
-
|
|
269
|
+
6921,
|
|
270
270
|
'When using a font: The id of the font. If not set, defaults to the first font definition.'
|
|
271
271
|
))
|
|
272
272
|
}
|
|
@@ -311,26 +311,26 @@ const schema = {
|
|
|
311
311
|
},
|
|
312
312
|
light: {
|
|
313
313
|
$ref: '#/definitions/associations',
|
|
314
|
-
description: ( localize(
|
|
314
|
+
description: ( localize(6922, 'Optional associations for file icons in light color themes.'))
|
|
315
315
|
},
|
|
316
316
|
highContrast: {
|
|
317
317
|
$ref: '#/definitions/associations',
|
|
318
318
|
description: ( localize(
|
|
319
|
-
|
|
319
|
+
6923,
|
|
320
320
|
'Optional associations for file icons in high contrast color themes.'
|
|
321
321
|
))
|
|
322
322
|
},
|
|
323
323
|
hidesExplorerArrows: {
|
|
324
324
|
type: 'boolean',
|
|
325
325
|
description: ( localize(
|
|
326
|
-
|
|
326
|
+
6924,
|
|
327
327
|
'Configures whether the file explorer\'s arrows should be hidden when this theme is active.'
|
|
328
328
|
))
|
|
329
329
|
},
|
|
330
330
|
showLanguageModeIcons: {
|
|
331
331
|
type: 'boolean',
|
|
332
332
|
description: ( localize(
|
|
333
|
-
|
|
333
|
+
6925,
|
|
334
334
|
'Configures whether the default language icons should be used if the theme does not define an icon for a language.'
|
|
335
335
|
))
|
|
336
336
|
}
|
|
@@ -21,23 +21,23 @@ const schema = {
|
|
|
21
21
|
properties: {
|
|
22
22
|
id: {
|
|
23
23
|
type: 'string',
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(7006, 'The ID of the font.')),
|
|
25
25
|
pattern: fontIdRegex,
|
|
26
|
-
patternErrorMessage: ( localize(
|
|
26
|
+
patternErrorMessage: ( localize(7007, 'The ID must only contain letters, numbers, underscore and minus.'))
|
|
27
27
|
},
|
|
28
28
|
src: {
|
|
29
29
|
type: 'array',
|
|
30
|
-
description: ( localize(
|
|
30
|
+
description: ( localize(7008, 'The location of the font.')),
|
|
31
31
|
items: {
|
|
32
32
|
type: 'object',
|
|
33
33
|
properties: {
|
|
34
34
|
path: {
|
|
35
35
|
type: 'string',
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(7009, 'The font path, relative to the current product icon theme file.')),
|
|
37
37
|
},
|
|
38
38
|
format: {
|
|
39
39
|
type: 'string',
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(7010, 'The format of the font.')),
|
|
41
41
|
enum: ['woff', 'woff2', 'truetype', 'opentype', 'embedded-opentype', 'svg']
|
|
42
42
|
}
|
|
43
43
|
},
|
|
@@ -50,7 +50,7 @@ const schema = {
|
|
|
50
50
|
weight: {
|
|
51
51
|
type: 'string',
|
|
52
52
|
description: ( localize(
|
|
53
|
-
|
|
53
|
+
7011,
|
|
54
54
|
'The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values.'
|
|
55
55
|
)),
|
|
56
56
|
anyOf: [
|
|
@@ -61,7 +61,7 @@ const schema = {
|
|
|
61
61
|
style: {
|
|
62
62
|
type: 'string',
|
|
63
63
|
description: ( localize(
|
|
64
|
-
|
|
64
|
+
7012,
|
|
65
65
|
'The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values.'
|
|
66
66
|
)),
|
|
67
67
|
anyOf: [
|
|
@@ -77,7 +77,7 @@ const schema = {
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
iconDefinitions: {
|
|
80
|
-
description: ( localize(
|
|
80
|
+
description: ( localize(7013, 'Association of icon name to a font character.')),
|
|
81
81
|
$ref: iconsSchemaId
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -30,7 +30,7 @@ const COLOR_THEME_CONFIGURATION_SETTINGS_TAG = 'colorThemeConfiguration';
|
|
|
30
30
|
const colorThemeSettingSchema = {
|
|
31
31
|
type: 'string',
|
|
32
32
|
markdownDescription: ( localize(
|
|
33
|
-
|
|
33
|
+
6962,
|
|
34
34
|
"Specifies the color theme used in the workbench when {0} is not enabled.",
|
|
35
35
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
36
36
|
)),
|
|
@@ -39,12 +39,12 @@ const colorThemeSettingSchema = {
|
|
|
39
39
|
enum: colorThemeSettingEnum,
|
|
40
40
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
41
41
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
42
|
-
errorMessage: ( localize(
|
|
42
|
+
errorMessage: ( localize(6963, "Theme is unknown or not installed.")),
|
|
43
43
|
};
|
|
44
44
|
const preferredDarkThemeSettingSchema = {
|
|
45
45
|
type: 'string',
|
|
46
46
|
markdownDescription: ( localize(
|
|
47
|
-
|
|
47
|
+
6964,
|
|
48
48
|
'Specifies the color theme when system color mode is dark and {0} is enabled.',
|
|
49
49
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
50
50
|
)),
|
|
@@ -53,12 +53,12 @@ const preferredDarkThemeSettingSchema = {
|
|
|
53
53
|
enum: colorThemeSettingEnum,
|
|
54
54
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
55
55
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
56
|
-
errorMessage: ( localize(
|
|
56
|
+
errorMessage: ( localize(6963, "Theme is unknown or not installed.")),
|
|
57
57
|
};
|
|
58
58
|
const preferredLightThemeSettingSchema = {
|
|
59
59
|
type: 'string',
|
|
60
60
|
markdownDescription: ( localize(
|
|
61
|
-
|
|
61
|
+
6965,
|
|
62
62
|
'Specifies the color theme when system color mode is light and {0} is enabled.',
|
|
63
63
|
formatSettingAsLink(ThemeSettings.DETECT_COLOR_SCHEME)
|
|
64
64
|
)),
|
|
@@ -67,12 +67,12 @@ const preferredLightThemeSettingSchema = {
|
|
|
67
67
|
enum: colorThemeSettingEnum,
|
|
68
68
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
69
69
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
70
|
-
errorMessage: ( localize(
|
|
70
|
+
errorMessage: ( localize(6963, "Theme is unknown or not installed.")),
|
|
71
71
|
};
|
|
72
72
|
const preferredHCDarkThemeSettingSchema = {
|
|
73
73
|
type: 'string',
|
|
74
74
|
markdownDescription: ( localize(
|
|
75
|
-
|
|
75
|
+
6966,
|
|
76
76
|
'Specifies the color theme when in high contrast dark mode and {0} is enabled.',
|
|
77
77
|
formatSettingAsLink(ThemeSettings.DETECT_HC)
|
|
78
78
|
)),
|
|
@@ -81,12 +81,12 @@ const preferredHCDarkThemeSettingSchema = {
|
|
|
81
81
|
enum: colorThemeSettingEnum,
|
|
82
82
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
83
83
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
84
|
-
errorMessage: ( localize(
|
|
84
|
+
errorMessage: ( localize(6963, "Theme is unknown or not installed.")),
|
|
85
85
|
};
|
|
86
86
|
const preferredHCLightThemeSettingSchema = {
|
|
87
87
|
type: 'string',
|
|
88
88
|
markdownDescription: ( localize(
|
|
89
|
-
|
|
89
|
+
6967,
|
|
90
90
|
'Specifies the color theme when in high contrast light mode and {0} is enabled.',
|
|
91
91
|
formatSettingAsLink(ThemeSettings.DETECT_HC)
|
|
92
92
|
)),
|
|
@@ -95,12 +95,12 @@ const preferredHCLightThemeSettingSchema = {
|
|
|
95
95
|
enum: colorThemeSettingEnum,
|
|
96
96
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
97
97
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
98
|
-
errorMessage: ( localize(
|
|
98
|
+
errorMessage: ( localize(6963, "Theme is unknown or not installed.")),
|
|
99
99
|
};
|
|
100
100
|
const detectColorSchemeSettingSchema = {
|
|
101
101
|
type: 'boolean',
|
|
102
102
|
markdownDescription: ( localize(
|
|
103
|
-
|
|
103
|
+
6968,
|
|
104
104
|
'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}.',
|
|
105
105
|
formatSettingAsLink(ThemeSettings.PREFERRED_DARK_THEME),
|
|
106
106
|
formatSettingAsLink(ThemeSettings.PREFERRED_LIGHT_THEME)
|
|
@@ -110,7 +110,7 @@ const detectColorSchemeSettingSchema = {
|
|
|
110
110
|
};
|
|
111
111
|
const colorCustomizationsSchema = {
|
|
112
112
|
type: 'object',
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(6969, "Overrides colors from the currently selected color theme.")),
|
|
114
114
|
allOf: [{ $ref: workbenchColorsSchemaId }],
|
|
115
115
|
default: {},
|
|
116
116
|
defaultSnippets: [{
|
|
@@ -121,28 +121,28 @@ const fileIconThemeSettingSchema = {
|
|
|
121
121
|
type: ['string', 'null'],
|
|
122
122
|
default: ThemeSettingDefaults.FILE_ICON_THEME,
|
|
123
123
|
description: ( localize(
|
|
124
|
-
|
|
124
|
+
6970,
|
|
125
125
|
"Specifies the file icon theme used in the workbench or 'null' to not show any file icons."
|
|
126
126
|
)),
|
|
127
127
|
enum: [null],
|
|
128
|
-
enumItemLabels: [( localize(
|
|
129
|
-
enumDescriptions: [( localize(
|
|
130
|
-
errorMessage: ( localize(
|
|
128
|
+
enumItemLabels: [( localize(6971, 'None'))],
|
|
129
|
+
enumDescriptions: [( localize(6972, 'No file icons'))],
|
|
130
|
+
errorMessage: ( localize(6973, "File icon theme is unknown or not installed."))
|
|
131
131
|
};
|
|
132
132
|
const productIconThemeSettingSchema = {
|
|
133
133
|
type: ['string', 'null'],
|
|
134
134
|
default: ThemeSettingDefaults.PRODUCT_ICON_THEME,
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(6974, "Specifies the product icon theme used.")),
|
|
136
136
|
enum: [ThemeSettingDefaults.PRODUCT_ICON_THEME],
|
|
137
|
-
enumItemLabels: [( localize(
|
|
138
|
-
enumDescriptions: [( localize(
|
|
139
|
-
errorMessage: ( localize(
|
|
137
|
+
enumItemLabels: [( localize(6975, 'Default'))],
|
|
138
|
+
enumDescriptions: [( localize(6976, 'Default'))],
|
|
139
|
+
errorMessage: ( localize(6977, "Product icon theme is unknown or not installed."))
|
|
140
140
|
};
|
|
141
141
|
const detectHCSchemeSettingSchema = {
|
|
142
142
|
type: 'boolean',
|
|
143
143
|
default: true,
|
|
144
144
|
markdownDescription: ( localize(
|
|
145
|
-
|
|
145
|
+
6978,
|
|
146
146
|
"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}.",
|
|
147
147
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_DARK_THEME),
|
|
148
148
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_LIGHT_THEME)
|
|
@@ -186,31 +186,31 @@ const themeSpecificSettingKey = '^\\[[^\\]]*(\\]\\s*\\[[^\\]]*)*\\]$';
|
|
|
186
186
|
const tokenColorSchema = {
|
|
187
187
|
type: 'object',
|
|
188
188
|
properties: {
|
|
189
|
-
comments: tokenGroupSettings(( localize(
|
|
190
|
-
strings: tokenGroupSettings(( localize(
|
|
191
|
-
keywords: tokenGroupSettings(( localize(
|
|
192
|
-
numbers: tokenGroupSettings(( localize(
|
|
193
|
-
types: tokenGroupSettings(( localize(
|
|
189
|
+
comments: tokenGroupSettings(( localize(6979, "Sets the colors and styles for comments"))),
|
|
190
|
+
strings: tokenGroupSettings(( localize(6980, "Sets the colors and styles for strings literals."))),
|
|
191
|
+
keywords: tokenGroupSettings(( localize(6981, "Sets the colors and styles for keywords."))),
|
|
192
|
+
numbers: tokenGroupSettings(( localize(6982, "Sets the colors and styles for number literals."))),
|
|
193
|
+
types: tokenGroupSettings(( localize(6983, "Sets the colors and styles for type declarations and references."))),
|
|
194
194
|
functions: tokenGroupSettings(( localize(
|
|
195
|
-
|
|
195
|
+
6984,
|
|
196
196
|
"Sets the colors and styles for functions declarations and references."
|
|
197
197
|
))),
|
|
198
198
|
variables: tokenGroupSettings(( localize(
|
|
199
|
-
|
|
199
|
+
6985,
|
|
200
200
|
"Sets the colors and styles for variables declarations and references."
|
|
201
201
|
))),
|
|
202
202
|
textMateRules: {
|
|
203
|
-
description: ( localize(
|
|
203
|
+
description: ( localize(6986, 'Sets colors and styles using textmate theming rules (advanced).')),
|
|
204
204
|
$ref: textmateColorsSchemaId
|
|
205
205
|
},
|
|
206
206
|
semanticHighlighting: {
|
|
207
|
-
description: ( localize(
|
|
207
|
+
description: ( localize(6987, 'Whether semantic highlighting should be enabled for this theme.')),
|
|
208
208
|
deprecationMessage: ( localize(
|
|
209
|
-
|
|
209
|
+
6988,
|
|
210
210
|
'Use `enabled` in `editor.semanticTokenColorCustomizations` setting instead.'
|
|
211
211
|
)),
|
|
212
212
|
markdownDeprecationMessage: ( localize(
|
|
213
|
-
|
|
213
|
+
6989,
|
|
214
214
|
'Use `enabled` in {0} setting instead.',
|
|
215
215
|
formatSettingAsLink('editor.semanticTokenColorCustomizations')
|
|
216
216
|
)),
|
|
@@ -221,7 +221,7 @@ const tokenColorSchema = {
|
|
|
221
221
|
};
|
|
222
222
|
const tokenColorCustomizationSchema = {
|
|
223
223
|
description: ( localize(
|
|
224
|
-
|
|
224
|
+
6990,
|
|
225
225
|
"Overrides editor syntax colors and font style from the currently selected color theme."
|
|
226
226
|
)),
|
|
227
227
|
default: {},
|
|
@@ -233,14 +233,14 @@ const semanticTokenColorSchema = {
|
|
|
233
233
|
enabled: {
|
|
234
234
|
type: 'boolean',
|
|
235
235
|
description: ( localize(
|
|
236
|
-
|
|
236
|
+
6991,
|
|
237
237
|
'Whether semantic highlighting is enabled or disabled for this theme'
|
|
238
238
|
)),
|
|
239
239
|
suggestSortText: '0_enabled'
|
|
240
240
|
},
|
|
241
241
|
rules: {
|
|
242
242
|
$ref: tokenStylingSchemaId,
|
|
243
|
-
description: ( localize(
|
|
243
|
+
description: ( localize(6992, 'Semantic token styling rules for this theme.')),
|
|
244
244
|
suggestSortText: '0_rules'
|
|
245
245
|
}
|
|
246
246
|
},
|
|
@@ -248,7 +248,7 @@ const semanticTokenColorSchema = {
|
|
|
248
248
|
};
|
|
249
249
|
const semanticTokenColorCustomizationSchema = {
|
|
250
250
|
description: ( localize(
|
|
251
|
-
|
|
251
|
+
6993,
|
|
252
252
|
"Overrides editor semantic token color and styles from the currently selected color theme."
|
|
253
253
|
)),
|
|
254
254
|
default: {},
|
|
@@ -14,30 +14,30 @@ function registerColorThemeExtensionPoint() {
|
|
|
14
14
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
15
15
|
extensionPoint: 'themes',
|
|
16
16
|
jsonSchema: {
|
|
17
|
-
description: ( localize(
|
|
17
|
+
description: ( localize(6941, 'Contributes textmate color themes.')),
|
|
18
18
|
type: 'array',
|
|
19
19
|
items: {
|
|
20
20
|
type: 'object',
|
|
21
21
|
defaultSnippets: [{ body: { label: '${1:label}', id: '${2:id}', uiTheme: VS_DARK_THEME, path: './themes/${3:id}.tmTheme.' } }],
|
|
22
22
|
properties: {
|
|
23
23
|
id: {
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(6942, 'Id of the color theme as used in the user settings.')),
|
|
25
25
|
type: 'string'
|
|
26
26
|
},
|
|
27
27
|
label: {
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(6943, 'Label of the color theme as shown in the UI.')),
|
|
29
29
|
type: 'string'
|
|
30
30
|
},
|
|
31
31
|
uiTheme: {
|
|
32
32
|
description: ( localize(
|
|
33
|
-
|
|
33
|
+
6944,
|
|
34
34
|
'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.'
|
|
35
35
|
)),
|
|
36
36
|
enum: [VS_LIGHT_THEME, VS_DARK_THEME, VS_HC_THEME, VS_HC_LIGHT_THEME]
|
|
37
37
|
},
|
|
38
38
|
path: {
|
|
39
39
|
description: ( localize(
|
|
40
|
-
|
|
40
|
+
6945,
|
|
41
41
|
'Path of the tmTheme file. The path is relative to the extension folder and is typically \'./colorthemes/awesome-color-theme.json\'.'
|
|
42
42
|
)),
|
|
43
43
|
type: 'string'
|
|
@@ -52,23 +52,23 @@ function registerFileIconThemeExtensionPoint() {
|
|
|
52
52
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
53
53
|
extensionPoint: 'iconThemes',
|
|
54
54
|
jsonSchema: {
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(6946, 'Contributes file icon themes.')),
|
|
56
56
|
type: 'array',
|
|
57
57
|
items: {
|
|
58
58
|
type: 'object',
|
|
59
59
|
defaultSnippets: [{ body: { id: '${1:id}', label: '${2:label}', path: './fileicons/${3:id}-icon-theme.json' } }],
|
|
60
60
|
properties: {
|
|
61
61
|
id: {
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(6947, 'Id of the file icon theme as used in the user settings.')),
|
|
63
63
|
type: 'string'
|
|
64
64
|
},
|
|
65
65
|
label: {
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(6948, 'Label of the file icon theme as shown in the UI.')),
|
|
67
67
|
type: 'string'
|
|
68
68
|
},
|
|
69
69
|
path: {
|
|
70
70
|
description: ( localize(
|
|
71
|
-
|
|
71
|
+
6949,
|
|
72
72
|
'Path of the file icon theme definition file. The path is relative to the extension folder and is typically \'./fileicons/awesome-icon-theme.json\'.'
|
|
73
73
|
)),
|
|
74
74
|
type: 'string'
|
|
@@ -83,23 +83,23 @@ function registerProductIconThemeExtensionPoint() {
|
|
|
83
83
|
return ExtensionsRegistry.registerExtensionPoint({
|
|
84
84
|
extensionPoint: 'productIconThemes',
|
|
85
85
|
jsonSchema: {
|
|
86
|
-
description: ( localize(
|
|
86
|
+
description: ( localize(6950, 'Contributes product icon themes.')),
|
|
87
87
|
type: 'array',
|
|
88
88
|
items: {
|
|
89
89
|
type: 'object',
|
|
90
90
|
defaultSnippets: [{ body: { id: '${1:id}', label: '${2:label}', path: './producticons/${3:id}-product-icon-theme.json' } }],
|
|
91
91
|
properties: {
|
|
92
92
|
id: {
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(6951, 'Id of the product icon theme as used in the user settings.')),
|
|
94
94
|
type: 'string'
|
|
95
95
|
},
|
|
96
96
|
label: {
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(6952, 'Label of the product icon theme as shown in the UI.')),
|
|
98
98
|
type: 'string'
|
|
99
99
|
},
|
|
100
100
|
path: {
|
|
101
101
|
description: ( localize(
|
|
102
|
-
|
|
102
|
+
6953,
|
|
103
103
|
'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\'.'
|
|
104
104
|
)),
|
|
105
105
|
type: 'string'
|
|
@@ -121,19 +121,19 @@ class ThemeDataRenderer extends Disposable {
|
|
|
121
121
|
render(manifest) {
|
|
122
122
|
const markdown = ( (new MarkdownString()));
|
|
123
123
|
if (manifest.contributes?.themes) {
|
|
124
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
124
|
+
markdown.appendMarkdown(`### ${( localize(6954, "Color Themes"))}\n\n`);
|
|
125
125
|
for (const theme of manifest.contributes.themes) {
|
|
126
126
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
if (manifest.contributes?.iconThemes) {
|
|
130
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
130
|
+
markdown.appendMarkdown(`### ${( localize(6955, "File Icon Themes"))}\n\n`);
|
|
131
131
|
for (const theme of manifest.contributes.iconThemes) {
|
|
132
132
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
if (manifest.contributes?.productIconThemes) {
|
|
136
|
-
markdown.appendMarkdown(`### ${( localize(
|
|
136
|
+
markdown.appendMarkdown(`### ${( localize(6956, "Product Icon Themes"))}\n\n`);
|
|
137
137
|
for (const theme of manifest.contributes.productIconThemes) {
|
|
138
138
|
markdown.appendMarkdown(`- ${theme.label}\n`);
|
|
139
139
|
}
|
|
@@ -146,7 +146,7 @@ class ThemeDataRenderer extends Disposable {
|
|
|
146
146
|
}
|
|
147
147
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
148
148
|
id: 'themes',
|
|
149
|
-
label: ( localize(
|
|
149
|
+
label: ( localize(6957, "Themes")),
|
|
150
150
|
access: {
|
|
151
151
|
canToggle: false
|
|
152
152
|
},
|
|
@@ -192,13 +192,13 @@ class ThemeRegistry {
|
|
|
192
192
|
}
|
|
193
193
|
onThemes(extensionData, extensionLocation, themeContributions, resultingThemes = [], log) {
|
|
194
194
|
if (!Array.isArray(themeContributions)) {
|
|
195
|
-
log?.error(( localize(
|
|
195
|
+
log?.error(( localize(6958, "Extension point `{0}` must be an array.", this.themesExtPoint.name)));
|
|
196
196
|
return resultingThemes;
|
|
197
197
|
}
|
|
198
198
|
themeContributions.forEach(theme => {
|
|
199
199
|
if (!theme.path || !isString(theme.path)) {
|
|
200
200
|
log?.error(( localize(
|
|
201
|
-
|
|
201
|
+
6959,
|
|
202
202
|
"Expected string in `contributes.{0}.path`. Provided value: {1}",
|
|
203
203
|
this.themesExtPoint.name,
|
|
204
204
|
String(theme.path)
|
|
@@ -207,7 +207,7 @@ class ThemeRegistry {
|
|
|
207
207
|
}
|
|
208
208
|
if (this.idRequired && (!theme.id || !isString(theme.id))) {
|
|
209
209
|
log?.error(( localize(
|
|
210
|
-
|
|
210
|
+
6960,
|
|
211
211
|
"Expected string in `contributes.{0}.id`. Provided value: {1}",
|
|
212
212
|
this.themesExtPoint.name,
|
|
213
213
|
String(theme.id)
|
|
@@ -217,7 +217,7 @@ class ThemeRegistry {
|
|
|
217
217
|
const themeLocation = joinPath(extensionLocation, theme.path);
|
|
218
218
|
if (!isEqualOrParent(themeLocation, extensionLocation)) {
|
|
219
219
|
log?.warn(( localize(
|
|
220
|
-
|
|
220
|
+
6961,
|
|
221
221
|
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
222
222
|
this.themesExtPoint.name,
|
|
223
223
|
themeLocation.path,
|