@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
|
@@ -13,113 +13,113 @@ const schema = {
|
|
|
13
13
|
folderExpanded: {
|
|
14
14
|
type: "string",
|
|
15
15
|
description: ( localize(
|
|
16
|
-
|
|
16
|
+
17001,
|
|
17
17
|
"The folder icon for expanded folders. The expanded folder icon is optional. If not set, the icon defined for folder will be shown."
|
|
18
18
|
))
|
|
19
19
|
},
|
|
20
20
|
folder: {
|
|
21
21
|
type: "string",
|
|
22
22
|
description: ( localize(
|
|
23
|
-
|
|
23
|
+
17002,
|
|
24
24
|
"The folder icon for collapsed folders, and if folderExpanded is not set, also for expanded folders."
|
|
25
25
|
))
|
|
26
26
|
},
|
|
27
27
|
file: {
|
|
28
28
|
type: "string",
|
|
29
29
|
description: ( localize(
|
|
30
|
-
|
|
30
|
+
17003,
|
|
31
31
|
"The default file icon, shown for all files that don't match any extension, filename or language id."
|
|
32
32
|
))
|
|
33
33
|
},
|
|
34
34
|
rootFolder: {
|
|
35
35
|
type: "string",
|
|
36
36
|
description: ( localize(
|
|
37
|
-
|
|
37
|
+
17004,
|
|
38
38
|
"The folder icon for collapsed root folders, and if rootFolderExpanded is not set, also for expanded root folders."
|
|
39
39
|
))
|
|
40
40
|
},
|
|
41
41
|
rootFolderExpanded: {
|
|
42
42
|
type: "string",
|
|
43
43
|
description: ( localize(
|
|
44
|
-
|
|
44
|
+
17005,
|
|
45
45
|
"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."
|
|
46
46
|
))
|
|
47
47
|
},
|
|
48
48
|
rootFolderNames: {
|
|
49
49
|
type: "object",
|
|
50
50
|
description: ( localize(
|
|
51
|
-
|
|
51
|
+
17006,
|
|
52
52
|
"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."
|
|
53
53
|
)),
|
|
54
54
|
additionalProperties: {
|
|
55
55
|
type: "string",
|
|
56
|
-
description: ( localize(
|
|
56
|
+
description: ( localize(17007, "The ID of the icon definition for the association."))
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
rootFolderNamesExpanded: {
|
|
60
60
|
type: "object",
|
|
61
61
|
description: ( localize(
|
|
62
|
-
|
|
62
|
+
17008,
|
|
63
63
|
"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."
|
|
64
64
|
)),
|
|
65
65
|
additionalProperties: {
|
|
66
66
|
type: "string",
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(17009, "The ID of the icon definition for the association."))
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
folderNames: {
|
|
71
71
|
type: "object",
|
|
72
72
|
description: ( localize(
|
|
73
|
-
|
|
73
|
+
17010,
|
|
74
74
|
"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."
|
|
75
75
|
)),
|
|
76
76
|
additionalProperties: {
|
|
77
77
|
type: "string",
|
|
78
|
-
description: ( localize(
|
|
78
|
+
description: ( localize(17007, "The ID of the icon definition for the association."))
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
folderNamesExpanded: {
|
|
82
82
|
type: "object",
|
|
83
83
|
description: ( localize(
|
|
84
|
-
|
|
84
|
+
17011,
|
|
85
85
|
"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."
|
|
86
86
|
)),
|
|
87
87
|
additionalProperties: {
|
|
88
88
|
type: "string",
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(17012, "The ID of the icon definition for the association."))
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
fileExtensions: {
|
|
93
93
|
type: "object",
|
|
94
94
|
description: ( localize(
|
|
95
|
-
|
|
95
|
+
17013,
|
|
96
96
|
"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."
|
|
97
97
|
)),
|
|
98
98
|
additionalProperties: {
|
|
99
99
|
type: "string",
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(17014, "The ID of the icon definition for the association."))
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
fileNames: {
|
|
104
104
|
type: "object",
|
|
105
105
|
description: ( localize(
|
|
106
|
-
|
|
106
|
+
17015,
|
|
107
107
|
"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."
|
|
108
108
|
)),
|
|
109
109
|
additionalProperties: {
|
|
110
110
|
type: "string",
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(17016, "The ID of the icon definition for the association."))
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
languageIds: {
|
|
115
115
|
type: "object",
|
|
116
116
|
description: ( localize(
|
|
117
|
-
|
|
117
|
+
17017,
|
|
118
118
|
"Associates languages to icons. The object key is the language id as defined in the language contribution point."
|
|
119
119
|
)),
|
|
120
120
|
additionalProperties: {
|
|
121
121
|
type: "string",
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(17018, "The ID of the icon definition for the association."))
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
associations: {
|
|
@@ -167,29 +167,29 @@ const schema = {
|
|
|
167
167
|
properties: {
|
|
168
168
|
fonts: {
|
|
169
169
|
type: "array",
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(17019, "Fonts that are used in the icon definitions.")),
|
|
171
171
|
items: {
|
|
172
172
|
type: "object",
|
|
173
173
|
properties: {
|
|
174
174
|
id: {
|
|
175
175
|
type: "string",
|
|
176
|
-
description: ( localize(
|
|
176
|
+
description: ( localize(17020, "The ID of the font.")),
|
|
177
177
|
pattern: fontIdRegex.source,
|
|
178
178
|
patternErrorMessage: fontIdErrorMessage
|
|
179
179
|
},
|
|
180
180
|
src: {
|
|
181
181
|
type: "array",
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(17021, "The location of the font.")),
|
|
183
183
|
items: {
|
|
184
184
|
type: "object",
|
|
185
185
|
properties: {
|
|
186
186
|
path: {
|
|
187
187
|
type: "string",
|
|
188
|
-
description: ( localize(
|
|
188
|
+
description: ( localize(17022, "The font path, relative to the current file icon theme file."))
|
|
189
189
|
},
|
|
190
190
|
format: {
|
|
191
191
|
type: "string",
|
|
192
|
-
description: ( localize(
|
|
192
|
+
description: ( localize(17023, "The format of the font.")),
|
|
193
193
|
enum: ["woff", "woff2", "truetype", "opentype", "embedded-opentype", "svg"]
|
|
194
194
|
}
|
|
195
195
|
},
|
|
@@ -199,7 +199,7 @@ const schema = {
|
|
|
199
199
|
weight: {
|
|
200
200
|
type: "string",
|
|
201
201
|
description: ( localize(
|
|
202
|
-
|
|
202
|
+
17024,
|
|
203
203
|
"The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values."
|
|
204
204
|
)),
|
|
205
205
|
pattern: fontWeightRegex.source
|
|
@@ -207,7 +207,7 @@ const schema = {
|
|
|
207
207
|
style: {
|
|
208
208
|
type: "string",
|
|
209
209
|
description: ( localize(
|
|
210
|
-
|
|
210
|
+
17025,
|
|
211
211
|
"The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values."
|
|
212
212
|
)),
|
|
213
213
|
pattern: fontStyleRegex.source
|
|
@@ -215,7 +215,7 @@ const schema = {
|
|
|
215
215
|
size: {
|
|
216
216
|
type: "string",
|
|
217
217
|
description: ( localize(
|
|
218
|
-
|
|
218
|
+
17026,
|
|
219
219
|
"The default size of the font. We strongly recommend using a percentage value, for example: 125%."
|
|
220
220
|
)),
|
|
221
221
|
pattern: fontSizeRegex.source
|
|
@@ -227,34 +227,34 @@ const schema = {
|
|
|
227
227
|
iconDefinitions: {
|
|
228
228
|
type: "object",
|
|
229
229
|
description: ( localize(
|
|
230
|
-
|
|
230
|
+
17027,
|
|
231
231
|
"Description of all icons that can be used when associating files to icons."
|
|
232
232
|
)),
|
|
233
233
|
additionalProperties: {
|
|
234
234
|
type: "object",
|
|
235
|
-
description: ( localize(
|
|
235
|
+
description: ( localize(17028, "An icon definition. The object key is the ID of the definition.")),
|
|
236
236
|
properties: {
|
|
237
237
|
iconPath: {
|
|
238
238
|
type: "string",
|
|
239
239
|
description: ( localize(
|
|
240
|
-
|
|
240
|
+
17029,
|
|
241
241
|
"When using a SVG or PNG: The path to the image. The path is relative to the icon set file."
|
|
242
242
|
))
|
|
243
243
|
},
|
|
244
244
|
fontCharacter: {
|
|
245
245
|
type: "string",
|
|
246
|
-
description: ( localize(
|
|
246
|
+
description: ( localize(17030, "When using a glyph font: The character in the font to use."))
|
|
247
247
|
},
|
|
248
248
|
fontColor: {
|
|
249
249
|
type: "string",
|
|
250
250
|
format: "color-hex",
|
|
251
|
-
description: ( localize(
|
|
251
|
+
description: ( localize(17031, "When using a glyph font: The color to use.")),
|
|
252
252
|
pattern: fontColorRegex.source
|
|
253
253
|
},
|
|
254
254
|
fontSize: {
|
|
255
255
|
type: "string",
|
|
256
256
|
description: ( localize(
|
|
257
|
-
|
|
257
|
+
17032,
|
|
258
258
|
"When using a font: The font size in percentage to the text font. If not set, defaults to the size in the font definition."
|
|
259
259
|
)),
|
|
260
260
|
pattern: fontSizeRegex.source
|
|
@@ -262,7 +262,7 @@ const schema = {
|
|
|
262
262
|
fontId: {
|
|
263
263
|
type: "string",
|
|
264
264
|
description: ( localize(
|
|
265
|
-
|
|
265
|
+
17033,
|
|
266
266
|
"When using a font: The id of the font. If not set, defaults to the first font definition."
|
|
267
267
|
)),
|
|
268
268
|
pattern: fontIdRegex.source,
|
|
@@ -309,26 +309,26 @@ const schema = {
|
|
|
309
309
|
},
|
|
310
310
|
light: {
|
|
311
311
|
$ref: "#/definitions/associations",
|
|
312
|
-
description: ( localize(
|
|
312
|
+
description: ( localize(17034, "Optional associations for file icons in light color themes."))
|
|
313
313
|
},
|
|
314
314
|
highContrast: {
|
|
315
315
|
$ref: "#/definitions/associations",
|
|
316
316
|
description: ( localize(
|
|
317
|
-
|
|
317
|
+
17035,
|
|
318
318
|
"Optional associations for file icons in high contrast color themes."
|
|
319
319
|
))
|
|
320
320
|
},
|
|
321
321
|
hidesExplorerArrows: {
|
|
322
322
|
type: "boolean",
|
|
323
323
|
description: ( localize(
|
|
324
|
-
|
|
324
|
+
17036,
|
|
325
325
|
"Configures whether the file explorer's arrows should be hidden when this theme is active."
|
|
326
326
|
))
|
|
327
327
|
},
|
|
328
328
|
showLanguageModeIcons: {
|
|
329
329
|
type: "boolean",
|
|
330
330
|
description: ( localize(
|
|
331
|
-
|
|
331
|
+
17037,
|
|
332
332
|
"Configures whether the default language icons should be used if the theme does not define an icon for a language."
|
|
333
333
|
))
|
|
334
334
|
}
|
|
@@ -17,23 +17,23 @@ const schema = {
|
|
|
17
17
|
properties: {
|
|
18
18
|
id: {
|
|
19
19
|
type: "string",
|
|
20
|
-
description: ( localize(
|
|
20
|
+
description: ( localize(17051, "The ID of the font.")),
|
|
21
21
|
pattern: fontIdRegex.source,
|
|
22
22
|
patternErrorMessage: fontIdErrorMessage
|
|
23
23
|
},
|
|
24
24
|
src: {
|
|
25
25
|
type: "array",
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(17052, "The location of the font.")),
|
|
27
27
|
items: {
|
|
28
28
|
type: "object",
|
|
29
29
|
properties: {
|
|
30
30
|
path: {
|
|
31
31
|
type: "string",
|
|
32
|
-
description: ( localize(
|
|
32
|
+
description: ( localize(17053, "The font path, relative to the current product icon theme file."))
|
|
33
33
|
},
|
|
34
34
|
format: {
|
|
35
35
|
type: "string",
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(17054, "The format of the font.")),
|
|
37
37
|
enum: ["woff", "woff2", "truetype", "opentype", "embedded-opentype", "svg"]
|
|
38
38
|
}
|
|
39
39
|
},
|
|
@@ -43,7 +43,7 @@ const schema = {
|
|
|
43
43
|
weight: {
|
|
44
44
|
type: "string",
|
|
45
45
|
description: ( localize(
|
|
46
|
-
|
|
46
|
+
17055,
|
|
47
47
|
"The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values."
|
|
48
48
|
)),
|
|
49
49
|
anyOf: [{
|
|
@@ -56,7 +56,7 @@ const schema = {
|
|
|
56
56
|
style: {
|
|
57
57
|
type: "string",
|
|
58
58
|
description: ( localize(
|
|
59
|
-
|
|
59
|
+
17056,
|
|
60
60
|
"The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values."
|
|
61
61
|
)),
|
|
62
62
|
anyOf: [{
|
|
@@ -71,7 +71,7 @@ const schema = {
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
iconDefinitions: {
|
|
74
|
-
description: ( localize(
|
|
74
|
+
description: ( localize(17057, "Association of icon name to a font character.")),
|
|
75
75
|
$ref: iconsSchemaId
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -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
|
+
17058,
|
|
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(17059, "Theme is unknown or not installed."))
|
|
45
45
|
};
|
|
46
46
|
const preferredDarkThemeSettingSchema = {
|
|
47
47
|
type: "string",
|
|
48
48
|
markdownDescription: ( localize(
|
|
49
|
-
|
|
49
|
+
17060,
|
|
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(17059, "Theme is unknown or not installed."))
|
|
59
59
|
};
|
|
60
60
|
const preferredLightThemeSettingSchema = {
|
|
61
61
|
type: "string",
|
|
62
62
|
markdownDescription: ( localize(
|
|
63
|
-
|
|
63
|
+
17061,
|
|
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(17059, "Theme is unknown or not installed."))
|
|
73
73
|
};
|
|
74
74
|
const preferredHCDarkThemeSettingSchema = {
|
|
75
75
|
type: "string",
|
|
76
76
|
markdownDescription: ( localize(
|
|
77
|
-
|
|
77
|
+
17062,
|
|
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(17059, "Theme is unknown or not installed."))
|
|
87
87
|
};
|
|
88
88
|
const preferredHCLightThemeSettingSchema = {
|
|
89
89
|
type: "string",
|
|
90
90
|
markdownDescription: ( localize(
|
|
91
|
-
|
|
91
|
+
17063,
|
|
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,22 +97,27 @@ const preferredHCLightThemeSettingSchema = {
|
|
|
97
97
|
enum: colorThemeSettingEnum,
|
|
98
98
|
enumDescriptions: colorThemeSettingEnumDescriptions,
|
|
99
99
|
enumItemLabels: colorThemeSettingEnumItemLabels,
|
|
100
|
-
errorMessage: ( localize(
|
|
100
|
+
errorMessage: ( localize(17059, "Theme is unknown or not installed."))
|
|
101
101
|
};
|
|
102
102
|
const detectColorSchemeSettingSchema = {
|
|
103
103
|
type: "boolean",
|
|
104
104
|
markdownDescription: ( localize(
|
|
105
|
-
|
|
105
|
+
17064,
|
|
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)
|
|
109
109
|
)),
|
|
110
110
|
default: false,
|
|
111
|
+
...(isWeb ? {
|
|
112
|
+
agentsWindow: {
|
|
113
|
+
default: true
|
|
114
|
+
}
|
|
115
|
+
} : {}),
|
|
111
116
|
tags: [COLOR_THEME_CONFIGURATION_SETTINGS_TAG]
|
|
112
117
|
};
|
|
113
118
|
const colorCustomizationsSchema = {
|
|
114
119
|
type: "object",
|
|
115
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(17065, "Overrides colors from the currently selected color theme.")),
|
|
116
121
|
allOf: [{
|
|
117
122
|
$ref: workbenchColorsSchemaId
|
|
118
123
|
}],
|
|
@@ -125,28 +130,28 @@ const fileIconThemeSettingSchema = {
|
|
|
125
130
|
type: ["string", "null"],
|
|
126
131
|
default: ThemeSettingDefaults.FILE_ICON_THEME,
|
|
127
132
|
description: ( localize(
|
|
128
|
-
|
|
133
|
+
17066,
|
|
129
134
|
"Specifies the file icon theme used in the workbench or 'null' to not show any file icons."
|
|
130
135
|
)),
|
|
131
136
|
enum: [null],
|
|
132
|
-
enumItemLabels: [( localize(
|
|
133
|
-
enumDescriptions: [( localize(
|
|
134
|
-
errorMessage: ( localize(
|
|
137
|
+
enumItemLabels: [( localize(17067, "None"))],
|
|
138
|
+
enumDescriptions: [( localize(17068, "No file icons"))],
|
|
139
|
+
errorMessage: ( localize(17069, "File icon theme is unknown or not installed."))
|
|
135
140
|
};
|
|
136
141
|
const productIconThemeSettingSchema = {
|
|
137
142
|
type: ["string", "null"],
|
|
138
143
|
default: ThemeSettingDefaults.PRODUCT_ICON_THEME,
|
|
139
|
-
description: ( localize(
|
|
144
|
+
description: ( localize(17070, "Specifies the product icon theme used.")),
|
|
140
145
|
enum: [ThemeSettingDefaults.PRODUCT_ICON_THEME],
|
|
141
|
-
enumItemLabels: [( localize(
|
|
142
|
-
enumDescriptions: [( localize(
|
|
143
|
-
errorMessage: ( localize(
|
|
146
|
+
enumItemLabels: [( localize(17071, "Default"))],
|
|
147
|
+
enumDescriptions: [( localize(17072, "Default"))],
|
|
148
|
+
errorMessage: ( localize(17073, "Product icon theme is unknown or not installed."))
|
|
144
149
|
};
|
|
145
150
|
const detectHCSchemeSettingSchema = {
|
|
146
151
|
type: "boolean",
|
|
147
152
|
default: true,
|
|
148
153
|
markdownDescription: ( localize(
|
|
149
|
-
|
|
154
|
+
17074,
|
|
150
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}.",
|
|
151
156
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_DARK_THEME),
|
|
152
157
|
formatSettingAsLink(ThemeSettings.PREFERRED_HC_LIGHT_THEME)
|
|
@@ -190,31 +195,31 @@ const themeSpecificSettingKey = "^\\[[^\\]]*(\\]\\s*\\[[^\\]]*)*\\]$";
|
|
|
190
195
|
const tokenColorSchema = {
|
|
191
196
|
type: "object",
|
|
192
197
|
properties: {
|
|
193
|
-
comments: tokenGroupSettings(( localize(
|
|
194
|
-
strings: tokenGroupSettings(( localize(
|
|
195
|
-
keywords: tokenGroupSettings(( localize(
|
|
196
|
-
numbers: tokenGroupSettings(( localize(
|
|
197
|
-
types: tokenGroupSettings(( localize(
|
|
198
|
+
comments: tokenGroupSettings(( localize(17075, "Sets the colors and styles for comments"))),
|
|
199
|
+
strings: tokenGroupSettings(( localize(17076, "Sets the colors and styles for strings literals."))),
|
|
200
|
+
keywords: tokenGroupSettings(( localize(17077, "Sets the colors and styles for keywords."))),
|
|
201
|
+
numbers: tokenGroupSettings(( localize(17078, "Sets the colors and styles for number literals."))),
|
|
202
|
+
types: tokenGroupSettings(( localize(17079, "Sets the colors and styles for type declarations and references."))),
|
|
198
203
|
functions: tokenGroupSettings(( localize(
|
|
199
|
-
|
|
204
|
+
17080,
|
|
200
205
|
"Sets the colors and styles for functions declarations and references."
|
|
201
206
|
))),
|
|
202
207
|
variables: tokenGroupSettings(( localize(
|
|
203
|
-
|
|
208
|
+
17081,
|
|
204
209
|
"Sets the colors and styles for variables declarations and references."
|
|
205
210
|
))),
|
|
206
211
|
textMateRules: {
|
|
207
|
-
description: ( localize(
|
|
212
|
+
description: ( localize(17082, "Sets colors and styles using textmate theming rules (advanced).")),
|
|
208
213
|
$ref: textmateColorsSchemaId
|
|
209
214
|
},
|
|
210
215
|
semanticHighlighting: {
|
|
211
|
-
description: ( localize(
|
|
216
|
+
description: ( localize(17083, "Whether semantic highlighting should be enabled for this theme.")),
|
|
212
217
|
deprecationMessage: ( localize(
|
|
213
|
-
|
|
218
|
+
17084,
|
|
214
219
|
"Use `enabled` in `editor.semanticTokenColorCustomizations` setting instead."
|
|
215
220
|
)),
|
|
216
221
|
markdownDeprecationMessage: ( localize(
|
|
217
|
-
|
|
222
|
+
17085,
|
|
218
223
|
"Use `enabled` in {0} setting instead.",
|
|
219
224
|
formatSettingAsLink("editor.semanticTokenColorCustomizations")
|
|
220
225
|
)),
|
|
@@ -225,7 +230,7 @@ const tokenColorSchema = {
|
|
|
225
230
|
};
|
|
226
231
|
const tokenColorCustomizationSchema = {
|
|
227
232
|
description: ( localize(
|
|
228
|
-
|
|
233
|
+
17086,
|
|
229
234
|
"Overrides editor syntax colors and font style from the currently selected color theme."
|
|
230
235
|
)),
|
|
231
236
|
default: {},
|
|
@@ -242,14 +247,14 @@ const semanticTokenColorSchema = {
|
|
|
242
247
|
enabled: {
|
|
243
248
|
type: "boolean",
|
|
244
249
|
description: ( localize(
|
|
245
|
-
|
|
250
|
+
17087,
|
|
246
251
|
"Whether semantic highlighting is enabled or disabled for this theme"
|
|
247
252
|
)),
|
|
248
253
|
suggestSortText: "0_enabled"
|
|
249
254
|
},
|
|
250
255
|
rules: {
|
|
251
256
|
$ref: tokenStylingSchemaId,
|
|
252
|
-
description: ( localize(
|
|
257
|
+
description: ( localize(17088, "Semantic token styling rules for this theme.")),
|
|
253
258
|
suggestSortText: "0_rules"
|
|
254
259
|
}
|
|
255
260
|
},
|
|
@@ -257,7 +262,7 @@ const semanticTokenColorSchema = {
|
|
|
257
262
|
};
|
|
258
263
|
const semanticTokenColorCustomizationSchema = {
|
|
259
264
|
description: ( localize(
|
|
260
|
-
|
|
265
|
+
17089,
|
|
261
266
|
"Overrides editor semantic token color and styles from the currently selected color theme."
|
|
262
267
|
)),
|
|
263
268
|
default: {},
|
|
@@ -422,7 +427,7 @@ class ThemeConfiguration {
|
|
|
422
427
|
return ConfigurationTarget.WORKSPACE_FOLDER;
|
|
423
428
|
} else if (!isUndefined(settings.workspaceValue)) {
|
|
424
429
|
return ConfigurationTarget.WORKSPACE;
|
|
425
|
-
} else if (!isUndefined(settings.
|
|
430
|
+
} else if (!isUndefined(settings.userRemoteValue)) {
|
|
426
431
|
return ConfigurationTarget.USER_REMOTE;
|
|
427
432
|
}
|
|
428
433
|
return ConfigurationTarget.USER;
|