@codingame/monaco-vscode-theme-service-override 8.0.2 → 8.0.3
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": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
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@8.0.
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "8.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.3",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "8.0.3"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -608,13 +608,13 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
|
|
|
608
608
|
const contentValue = parse(content, errors);
|
|
609
609
|
if (errors.length > 0) {
|
|
610
610
|
return Promise.reject(( (new Error(( localize(
|
|
611
|
-
|
|
611
|
+
7235,
|
|
612
612
|
"Problems parsing JSON theme file: {0}",
|
|
613
613
|
( (errors.map(e => getParseErrorMessage(e.error)))).join(', ')
|
|
614
614
|
))))));
|
|
615
615
|
}
|
|
616
616
|
else if (getNodeType(contentValue) !== 'object') {
|
|
617
|
-
return Promise.reject(( (new Error(( localize(
|
|
617
|
+
return Promise.reject(( (new Error(( localize(7236, "Invalid format for JSON theme file: Object expected."))))));
|
|
618
618
|
}
|
|
619
619
|
if (contentValue.include) {
|
|
620
620
|
await _loadColorTheme(extensionResourceLoaderService, joinPath(dirname(themeLocation), contentValue.include), result);
|
|
@@ -628,7 +628,7 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
|
|
|
628
628
|
if (colors) {
|
|
629
629
|
if (typeof colors !== 'object') {
|
|
630
630
|
return Promise.reject(( (new Error(( localize(
|
|
631
|
-
|
|
631
|
+
7237,
|
|
632
632
|
"Problem parsing color theme file: {0}. Property 'colors' is not of type 'object'.",
|
|
633
633
|
(themeLocation.toString())
|
|
634
634
|
))))));
|
|
@@ -653,7 +653,7 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
|
|
|
653
653
|
}
|
|
654
654
|
else {
|
|
655
655
|
return Promise.reject(( (new Error(( localize(
|
|
656
|
-
|
|
656
|
+
7238,
|
|
657
657
|
"Problem parsing color theme file: {0}. Property 'tokenColors' should be either an array specifying colors or a path to a TextMate theme file",
|
|
658
658
|
(themeLocation.toString())
|
|
659
659
|
))))));
|
|
@@ -670,7 +670,7 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
|
|
|
670
670
|
}
|
|
671
671
|
catch (e) {
|
|
672
672
|
return Promise.reject(( (new Error(( localize(
|
|
673
|
-
|
|
673
|
+
7239,
|
|
674
674
|
"Problem parsing color theme file: {0}. Property 'semanticTokenColors' contains a invalid selector",
|
|
675
675
|
(themeLocation.toString())
|
|
676
676
|
))))));
|
|
@@ -688,17 +688,17 @@ function _loadSyntaxTokens(extensionResourceLoaderService, themeLocation, result
|
|
|
688
688
|
const contentValue = parse$1(content);
|
|
689
689
|
const settings = contentValue.settings;
|
|
690
690
|
if (!Array.isArray(settings)) {
|
|
691
|
-
return Promise.reject(( (new Error(( localize(
|
|
691
|
+
return Promise.reject(( (new Error(( localize(7240, "Problem parsing tmTheme file: {0}. 'settings' is not array."))))));
|
|
692
692
|
}
|
|
693
693
|
convertSettings(settings, result);
|
|
694
694
|
return Promise.resolve(null);
|
|
695
695
|
}
|
|
696
696
|
catch (e) {
|
|
697
|
-
return Promise.reject(( (new Error(( localize(
|
|
697
|
+
return Promise.reject(( (new Error(( localize(7241, "Problems parsing tmTheme file: {0}", e.message))))));
|
|
698
698
|
}
|
|
699
699
|
}, error => {
|
|
700
700
|
return Promise.reject(( (new Error(( localize(
|
|
701
|
-
|
|
701
|
+
7242,
|
|
702
702
|
"Problems loading tmTheme file {0}: {1}",
|
|
703
703
|
(themeLocation.toString()),
|
|
704
704
|
error.message
|
|
@@ -12,113 +12,113 @@ const schema = {
|
|
|
12
12
|
folderExpanded: {
|
|
13
13
|
type: 'string',
|
|
14
14
|
description: ( localize(
|
|
15
|
-
|
|
15
|
+
7197,
|
|
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
|
+
7198,
|
|
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
|
+
7199,
|
|
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
|
+
7200,
|
|
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
|
+
7201,
|
|
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
|
+
7202,
|
|
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(7203, '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
|
+
7204,
|
|
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(7205, '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
|
+
7206,
|
|
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(7203, '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
|
+
7207,
|
|
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(7208, '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
|
+
7209,
|
|
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(7210, '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
|
+
7211,
|
|
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(7212, '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
|
+
7213,
|
|
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(7214, '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(7215, '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(7216, 'The ID of the font.')),
|
|
176
176
|
pattern: fontIdRegex,
|
|
177
|
-
patternErrorMessage: ( localize(
|
|
177
|
+
patternErrorMessage: ( localize(7217, '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(7218, '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(7219, '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(7220, '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
|
+
7221,
|
|
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
|
+
7222,
|
|
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
|
+
7223,
|
|
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
|
+
7224,
|
|
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(7225, '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
|
+
7226,
|
|
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(7227, '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(7228, 'When using a glyph font: The color to use.'))
|
|
257
257
|
},
|
|
258
258
|
fontSize: {
|
|
259
259
|
type: 'string',
|
|
260
260
|
description: ( localize(
|
|
261
|
-
|
|
261
|
+
7229,
|
|
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
|
+
7230,
|
|
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(7231, '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
|
+
7232,
|
|
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
|
+
7233,
|
|
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
|
+
7234,
|
|
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
|
}
|