@codingame/monaco-vscode-configuration-service-override 4.5.1 → 4.5.2
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/api/common/configurationExtensionPoint.js +89 -188
- package/vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.js +33 -43
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +120 -113
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +103 -142
- package/vscode/src/vs/workbench/services/label/common/labelService.js +39 -63
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +39 -48
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-configuration-service-override",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
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@4.5.
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "4.5.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.5.2",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "4.5.2"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -12,51 +12,40 @@ import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
|
12
12
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
13
13
|
import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const _moduleId = "vs/workbench/api/common/configurationExtensionPoint";
|
|
16
|
+
const jsonRegistry = ( (Registry.as(Extensions.JSONContribution)));
|
|
17
|
+
const configurationRegistry = ( (Registry.as(Extensions$1.Configuration)));
|
|
17
18
|
const configurationEntrySchema = {
|
|
18
19
|
type: 'object',
|
|
19
20
|
defaultSnippets: [{ body: { title: '', properties: {} } }],
|
|
20
21
|
properties: {
|
|
21
22
|
title: {
|
|
22
23
|
description: ( localizeWithPath(
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
_moduleId,
|
|
25
|
+
0,
|
|
25
26
|
'A title for the current category of settings. This label will be rendered in the Settings editor as a subheading. If the title is the same as the extension display name, then the category will be grouped under the main extension heading.'
|
|
26
27
|
)),
|
|
27
28
|
type: 'string'
|
|
28
29
|
},
|
|
29
30
|
order: {
|
|
30
31
|
description: ( localizeWithPath(
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
_moduleId,
|
|
33
|
+
1,
|
|
33
34
|
'When specified, gives the order of this category of settings relative to other categories.'
|
|
34
35
|
)),
|
|
35
36
|
type: 'integer'
|
|
36
37
|
},
|
|
37
38
|
properties: {
|
|
38
|
-
description: ( localizeWithPath(
|
|
39
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
40
|
-
'vscode.extension.contributes.configuration.properties',
|
|
41
|
-
'Description of the configuration properties.'
|
|
42
|
-
)),
|
|
39
|
+
description: ( localizeWithPath(_moduleId, 2, 'Description of the configuration properties.')),
|
|
43
40
|
type: 'object',
|
|
44
41
|
propertyNames: {
|
|
45
42
|
pattern: '\\S+',
|
|
46
|
-
patternErrorMessage: ( localizeWithPath(
|
|
47
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
48
|
-
'vscode.extension.contributes.configuration.property.empty',
|
|
49
|
-
'Property should not be empty.'
|
|
50
|
-
)),
|
|
43
|
+
patternErrorMessage: ( localizeWithPath(_moduleId, 3, 'Property should not be empty.')),
|
|
51
44
|
},
|
|
52
45
|
additionalProperties: {
|
|
53
46
|
anyOf: [
|
|
54
47
|
{
|
|
55
|
-
title: ( localizeWithPath(
|
|
56
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
57
|
-
'vscode.extension.contributes.configuration.properties.schema',
|
|
58
|
-
'Schema of the configuration property.'
|
|
59
|
-
)),
|
|
48
|
+
title: ( localizeWithPath(_moduleId, 4, 'Schema of the configuration property.')),
|
|
60
49
|
$ref: 'http://json-schema.org/draft-07/schema#'
|
|
61
50
|
},
|
|
62
51
|
{
|
|
@@ -68,39 +57,39 @@ const configurationEntrySchema = {
|
|
|
68
57
|
default: 'window',
|
|
69
58
|
enumDescriptions: [
|
|
70
59
|
( localizeWithPath(
|
|
71
|
-
|
|
72
|
-
|
|
60
|
+
_moduleId,
|
|
61
|
+
5,
|
|
73
62
|
"Configuration that can be configured only in the user settings."
|
|
74
63
|
)),
|
|
75
64
|
( localizeWithPath(
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
_moduleId,
|
|
66
|
+
6,
|
|
78
67
|
"Configuration that can be configured only in the user settings or only in the remote settings."
|
|
79
68
|
)),
|
|
80
69
|
( localizeWithPath(
|
|
81
|
-
|
|
82
|
-
|
|
70
|
+
_moduleId,
|
|
71
|
+
7,
|
|
83
72
|
"Configuration that can be configured in the user, remote or workspace settings."
|
|
84
73
|
)),
|
|
85
74
|
( localizeWithPath(
|
|
86
|
-
|
|
87
|
-
|
|
75
|
+
_moduleId,
|
|
76
|
+
8,
|
|
88
77
|
"Configuration that can be configured in the user, remote, workspace or folder settings."
|
|
89
78
|
)),
|
|
90
79
|
( localizeWithPath(
|
|
91
|
-
|
|
92
|
-
|
|
80
|
+
_moduleId,
|
|
81
|
+
9,
|
|
93
82
|
"Resource configuration that can be configured in language specific settings."
|
|
94
83
|
)),
|
|
95
84
|
( localizeWithPath(
|
|
96
|
-
|
|
97
|
-
|
|
85
|
+
_moduleId,
|
|
86
|
+
10,
|
|
98
87
|
"Machine configuration that can be configured also in workspace or folder settings."
|
|
99
88
|
))
|
|
100
89
|
],
|
|
101
90
|
markdownDescription: ( localizeWithPath(
|
|
102
|
-
|
|
103
|
-
|
|
91
|
+
_moduleId,
|
|
92
|
+
11,
|
|
104
93
|
"Scope in which the configuration is applicable. Available scopes are `application`, `machine`, `window`, `resource`, and `machine-overridable`."
|
|
105
94
|
))
|
|
106
95
|
},
|
|
@@ -109,22 +98,14 @@ const configurationEntrySchema = {
|
|
|
109
98
|
items: {
|
|
110
99
|
type: 'string',
|
|
111
100
|
},
|
|
112
|
-
description: ( localizeWithPath(
|
|
113
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
114
|
-
'scope.enumDescriptions',
|
|
115
|
-
'Descriptions for enum values'
|
|
116
|
-
))
|
|
101
|
+
description: ( localizeWithPath(_moduleId, 12, 'Descriptions for enum values'))
|
|
117
102
|
},
|
|
118
103
|
markdownEnumDescriptions: {
|
|
119
104
|
type: 'array',
|
|
120
105
|
items: {
|
|
121
106
|
type: 'string',
|
|
122
107
|
},
|
|
123
|
-
description: ( localizeWithPath(
|
|
124
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
125
|
-
'scope.markdownEnumDescriptions',
|
|
126
|
-
'Descriptions for enum values in the markdown format.'
|
|
127
|
-
))
|
|
108
|
+
description: ( localizeWithPath(_moduleId, 13, 'Descriptions for enum values in the markdown format.'))
|
|
128
109
|
},
|
|
129
110
|
enumItemLabels: {
|
|
130
111
|
type: 'array',
|
|
@@ -132,33 +113,29 @@ const configurationEntrySchema = {
|
|
|
132
113
|
type: 'string'
|
|
133
114
|
},
|
|
134
115
|
markdownDescription: ( localizeWithPath(
|
|
135
|
-
|
|
136
|
-
|
|
116
|
+
_moduleId,
|
|
117
|
+
14,
|
|
137
118
|
'Labels for enum values to be displayed in the Settings editor. When specified, the {0} values still show after the labels, but less prominently.',
|
|
138
119
|
'`enum`'
|
|
139
120
|
))
|
|
140
121
|
},
|
|
141
122
|
markdownDescription: {
|
|
142
123
|
type: 'string',
|
|
143
|
-
description: ( localizeWithPath(
|
|
144
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
145
|
-
'scope.markdownDescription',
|
|
146
|
-
'The description in the markdown format.'
|
|
147
|
-
))
|
|
124
|
+
description: ( localizeWithPath(_moduleId, 15, 'The description in the markdown format.'))
|
|
148
125
|
},
|
|
149
126
|
deprecationMessage: {
|
|
150
127
|
type: 'string',
|
|
151
128
|
description: ( localizeWithPath(
|
|
152
|
-
|
|
153
|
-
|
|
129
|
+
_moduleId,
|
|
130
|
+
16,
|
|
154
131
|
'If set, the property is marked as deprecated and the given message is shown as an explanation.'
|
|
155
132
|
))
|
|
156
133
|
},
|
|
157
134
|
markdownDeprecationMessage: {
|
|
158
135
|
type: 'string',
|
|
159
136
|
description: ( localizeWithPath(
|
|
160
|
-
|
|
161
|
-
|
|
137
|
+
_moduleId,
|
|
138
|
+
17,
|
|
162
139
|
'If set, the property is marked as deprecated and the given message is shown as an explanation in the markdown format.'
|
|
163
140
|
))
|
|
164
141
|
},
|
|
@@ -166,37 +143,29 @@ const configurationEntrySchema = {
|
|
|
166
143
|
type: 'string',
|
|
167
144
|
enum: ['singlelineText', 'multilineText'],
|
|
168
145
|
enumDescriptions: [
|
|
169
|
-
( localizeWithPath(
|
|
170
|
-
|
|
171
|
-
'scope.singlelineText.description',
|
|
172
|
-
'The value will be shown in an inputbox.'
|
|
173
|
-
)),
|
|
174
|
-
( localizeWithPath(
|
|
175
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
176
|
-
'scope.multilineText.description',
|
|
177
|
-
'The value will be shown in a textarea.'
|
|
178
|
-
))
|
|
146
|
+
( localizeWithPath(_moduleId, 18, 'The value will be shown in an inputbox.')),
|
|
147
|
+
( localizeWithPath(_moduleId, 19, 'The value will be shown in a textarea.'))
|
|
179
148
|
],
|
|
180
149
|
default: 'singlelineText',
|
|
181
150
|
description: ( localizeWithPath(
|
|
182
|
-
|
|
183
|
-
|
|
151
|
+
_moduleId,
|
|
152
|
+
20,
|
|
184
153
|
'When specified, controls the presentation format of the string setting.'
|
|
185
154
|
))
|
|
186
155
|
},
|
|
187
156
|
order: {
|
|
188
157
|
type: 'integer',
|
|
189
158
|
description: ( localizeWithPath(
|
|
190
|
-
|
|
191
|
-
|
|
159
|
+
_moduleId,
|
|
160
|
+
21,
|
|
192
161
|
'When specified, gives the order of this setting relative to other settings within the same category. Settings with an order property will be placed before settings without this property set.'
|
|
193
162
|
))
|
|
194
163
|
},
|
|
195
164
|
ignoreSync: {
|
|
196
165
|
type: 'boolean',
|
|
197
166
|
description: ( localizeWithPath(
|
|
198
|
-
|
|
199
|
-
|
|
167
|
+
_moduleId,
|
|
168
|
+
22,
|
|
200
169
|
'When enabled, Settings Sync will not sync the user value of this configuration by default.'
|
|
201
170
|
))
|
|
202
171
|
},
|
|
@@ -226,23 +195,23 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
226
195
|
}
|
|
227
196
|
});
|
|
228
197
|
if (removed.length) {
|
|
229
|
-
const removedDefaultConfigurations = ( removed.map(
|
|
198
|
+
const removedDefaultConfigurations = ( (removed.map(
|
|
230
199
|
extension => ({ overrides: deepClone(extension.value), source: { id: extension.description.identifier.value, displayName: extension.description.displayName } })
|
|
231
|
-
));
|
|
200
|
+
)));
|
|
232
201
|
_configDelta.removedDefaults = removedDefaultConfigurations;
|
|
233
202
|
}
|
|
234
203
|
if (added.length) {
|
|
235
204
|
const registeredProperties = configurationRegistry.getConfigurationProperties();
|
|
236
205
|
const allowedScopes = [6 , 3 , 4 , 5 ];
|
|
237
|
-
const addedDefaultConfigurations = ( added.map(extension => {
|
|
206
|
+
const addedDefaultConfigurations = ( (added.map(extension => {
|
|
238
207
|
const overrides = deepClone(extension.value);
|
|
239
|
-
for (const key of ( Object.keys(overrides))) {
|
|
208
|
+
for (const key of ( (Object.keys(overrides)))) {
|
|
240
209
|
if (!OVERRIDE_PROPERTY_REGEX.test(key)) {
|
|
241
210
|
const registeredPropertyScheme = registeredProperties[key];
|
|
242
211
|
if (registeredPropertyScheme?.scope && !allowedScopes.includes(registeredPropertyScheme.scope)) {
|
|
243
212
|
extension.collector.warn(( localizeWithPath(
|
|
244
|
-
|
|
245
|
-
|
|
213
|
+
_moduleId,
|
|
214
|
+
23,
|
|
246
215
|
"Cannot register configuration defaults for '{0}'. Only defaults for machine-overridable, window, resource and language overridable scoped settings are supported.",
|
|
247
216
|
key
|
|
248
217
|
)));
|
|
@@ -251,7 +220,7 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
251
220
|
}
|
|
252
221
|
}
|
|
253
222
|
return { overrides, source: { id: extension.description.identifier.value, displayName: extension.description.displayName } };
|
|
254
|
-
}));
|
|
223
|
+
})));
|
|
255
224
|
_configDelta.addedDefaults = addedDefaultConfigurations;
|
|
256
225
|
}
|
|
257
226
|
});
|
|
@@ -259,11 +228,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
259
228
|
extensionPoint: 'configuration',
|
|
260
229
|
deps: [defaultConfigurationExtPoint],
|
|
261
230
|
jsonSchema: {
|
|
262
|
-
description: ( localizeWithPath(
|
|
263
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
264
|
-
'vscode.extension.contributes.configuration',
|
|
265
|
-
'Contributes configuration settings.'
|
|
266
|
-
)),
|
|
231
|
+
description: ( localizeWithPath(_moduleId, 24, 'Contributes configuration settings.')),
|
|
267
232
|
oneOf: [
|
|
268
233
|
configurationEntrySchema,
|
|
269
234
|
{
|
|
@@ -273,7 +238,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
273
238
|
]
|
|
274
239
|
}
|
|
275
240
|
});
|
|
276
|
-
const extensionConfigurations = ( new ExtensionIdentifierMap());
|
|
241
|
+
const extensionConfigurations = ( (new ExtensionIdentifierMap()));
|
|
277
242
|
configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
278
243
|
_configDelta ??= {};
|
|
279
244
|
if (removed.length) {
|
|
@@ -284,16 +249,12 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
284
249
|
}
|
|
285
250
|
_configDelta.removedConfigurations = removedConfigurations;
|
|
286
251
|
}
|
|
287
|
-
const seenProperties = ( new Set());
|
|
252
|
+
const seenProperties = ( (new Set()));
|
|
288
253
|
function handleConfiguration(node, extension) {
|
|
289
254
|
const configurations = [];
|
|
290
255
|
const configuration = deepClone(node);
|
|
291
256
|
if (configuration.title && (typeof configuration.title !== 'string')) {
|
|
292
|
-
extension.collector.error(( localizeWithPath(
|
|
293
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
294
|
-
'invalid.title',
|
|
295
|
-
"'configuration.title' must be a string"
|
|
296
|
-
)));
|
|
257
|
+
extension.collector.error(( localizeWithPath(_moduleId, 25, "'configuration.title' must be a string")));
|
|
297
258
|
}
|
|
298
259
|
validateProperties(configuration, extension);
|
|
299
260
|
configuration.id = node.id || extension.description.identifier.value;
|
|
@@ -307,11 +268,7 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
307
268
|
const properties = configuration.properties;
|
|
308
269
|
if (properties) {
|
|
309
270
|
if (typeof properties !== 'object') {
|
|
310
|
-
extension.collector.error(( localizeWithPath(
|
|
311
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
312
|
-
'invalid.properties',
|
|
313
|
-
"'configuration.properties' must be an object"
|
|
314
|
-
)));
|
|
271
|
+
extension.collector.error(( localizeWithPath(_moduleId, 26, "'configuration.properties' must be an object")));
|
|
315
272
|
configuration.properties = {};
|
|
316
273
|
}
|
|
317
274
|
for (const key in properties) {
|
|
@@ -322,11 +279,11 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
322
279
|
extension.collector.warn(message);
|
|
323
280
|
continue;
|
|
324
281
|
}
|
|
325
|
-
if (( seenProperties.has(key))) {
|
|
282
|
+
if (( (seenProperties.has(key)))) {
|
|
326
283
|
delete properties[key];
|
|
327
284
|
extension.collector.warn(( localizeWithPath(
|
|
328
|
-
|
|
329
|
-
|
|
285
|
+
_moduleId,
|
|
286
|
+
27,
|
|
330
287
|
"Cannot register '{0}'. This property is already registered.",
|
|
331
288
|
key
|
|
332
289
|
)));
|
|
@@ -335,8 +292,8 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
335
292
|
if (!isObject(propertyConfiguration)) {
|
|
336
293
|
delete properties[key];
|
|
337
294
|
extension.collector.error(( localizeWithPath(
|
|
338
|
-
|
|
339
|
-
|
|
295
|
+
_moduleId,
|
|
296
|
+
28,
|
|
340
297
|
"configuration.properties property '{0}' must be an object",
|
|
341
298
|
key
|
|
342
299
|
)));
|
|
@@ -344,19 +301,19 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
344
301
|
}
|
|
345
302
|
seenProperties.add(key);
|
|
346
303
|
if (propertyConfiguration.scope) {
|
|
347
|
-
if (( propertyConfiguration.scope.toString()) === 'application') {
|
|
304
|
+
if (( (propertyConfiguration.scope.toString())) === 'application') {
|
|
348
305
|
propertyConfiguration.scope = 1 ;
|
|
349
306
|
}
|
|
350
|
-
else if (( propertyConfiguration.scope.toString()) === 'machine') {
|
|
307
|
+
else if (( (propertyConfiguration.scope.toString())) === 'machine') {
|
|
351
308
|
propertyConfiguration.scope = 2 ;
|
|
352
309
|
}
|
|
353
|
-
else if (( propertyConfiguration.scope.toString()) === 'resource') {
|
|
310
|
+
else if (( (propertyConfiguration.scope.toString())) === 'resource') {
|
|
354
311
|
propertyConfiguration.scope = 4 ;
|
|
355
312
|
}
|
|
356
|
-
else if (( propertyConfiguration.scope.toString()) === 'machine-overridable') {
|
|
313
|
+
else if (( (propertyConfiguration.scope.toString())) === 'machine-overridable') {
|
|
357
314
|
propertyConfiguration.scope = 6 ;
|
|
358
315
|
}
|
|
359
|
-
else if (( propertyConfiguration.scope.toString()) === 'language-overridable') {
|
|
316
|
+
else if (( (propertyConfiguration.scope.toString())) === 'language-overridable') {
|
|
360
317
|
propertyConfiguration.scope = 5 ;
|
|
361
318
|
}
|
|
362
319
|
else {
|
|
@@ -371,8 +328,8 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
371
328
|
const subNodes = configuration.allOf;
|
|
372
329
|
if (subNodes) {
|
|
373
330
|
extension.collector.error(( localizeWithPath(
|
|
374
|
-
|
|
375
|
-
|
|
331
|
+
_moduleId,
|
|
332
|
+
29,
|
|
376
333
|
"'configuration.allOf' is deprecated and should no longer be used. Instead, pass multiple configuration sections as an array to the 'configuration' contribution point."
|
|
377
334
|
)));
|
|
378
335
|
for (const node of subNodes) {
|
|
@@ -415,11 +372,7 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
415
372
|
'folders': {
|
|
416
373
|
minItems: 0,
|
|
417
374
|
uniqueItems: true,
|
|
418
|
-
description: ( localizeWithPath(
|
|
419
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
420
|
-
'workspaceConfig.folders.description',
|
|
421
|
-
"List of folders to be loaded in the workspace."
|
|
422
|
-
)),
|
|
375
|
+
description: ( localizeWithPath(_moduleId, 30, "List of folders to be loaded in the workspace.")),
|
|
423
376
|
items: {
|
|
424
377
|
type: 'object',
|
|
425
378
|
defaultSnippets: [{ body: { path: '$1' } }],
|
|
@@ -428,18 +381,14 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
428
381
|
path: {
|
|
429
382
|
type: 'string',
|
|
430
383
|
description: ( localizeWithPath(
|
|
431
|
-
|
|
432
|
-
|
|
384
|
+
_moduleId,
|
|
385
|
+
31,
|
|
433
386
|
"A file path. e.g. `/root/folderA` or `./folderA` for a relative path that will be resolved against the location of the workspace file."
|
|
434
387
|
))
|
|
435
388
|
},
|
|
436
389
|
name: {
|
|
437
390
|
type: 'string',
|
|
438
|
-
description: ( localizeWithPath(
|
|
439
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
440
|
-
'workspaceConfig.name.description',
|
|
441
|
-
"An optional name for the folder. "
|
|
442
|
-
))
|
|
391
|
+
description: ( localizeWithPath(_moduleId, 32, "An optional name for the folder. "))
|
|
443
392
|
}
|
|
444
393
|
},
|
|
445
394
|
required: ['path']
|
|
@@ -447,19 +396,11 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
447
396
|
properties: {
|
|
448
397
|
uri: {
|
|
449
398
|
type: 'string',
|
|
450
|
-
description: ( localizeWithPath(
|
|
451
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
452
|
-
'workspaceConfig.uri.description',
|
|
453
|
-
"URI of the folder"
|
|
454
|
-
))
|
|
399
|
+
description: ( localizeWithPath(_moduleId, 33, "URI of the folder"))
|
|
455
400
|
},
|
|
456
401
|
name: {
|
|
457
402
|
type: 'string',
|
|
458
|
-
description: ( localizeWithPath(
|
|
459
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
460
|
-
'workspaceConfig.name.description',
|
|
461
|
-
"An optional name for the folder. "
|
|
462
|
-
))
|
|
403
|
+
description: ( localizeWithPath(_moduleId, 32, "An optional name for the folder. "))
|
|
463
404
|
}
|
|
464
405
|
},
|
|
465
406
|
required: ['uri']
|
|
@@ -469,67 +410,43 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
469
410
|
'settings': {
|
|
470
411
|
type: 'object',
|
|
471
412
|
default: {},
|
|
472
|
-
description: ( localizeWithPath(
|
|
473
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
474
|
-
'workspaceConfig.settings.description',
|
|
475
|
-
"Workspace settings"
|
|
476
|
-
)),
|
|
413
|
+
description: ( localizeWithPath(_moduleId, 34, "Workspace settings")),
|
|
477
414
|
$ref: workspaceSettingsSchemaId
|
|
478
415
|
},
|
|
479
416
|
'launch': {
|
|
480
417
|
type: 'object',
|
|
481
418
|
default: { configurations: [], compounds: [] },
|
|
482
|
-
description: ( localizeWithPath(
|
|
483
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
484
|
-
'workspaceConfig.launch.description',
|
|
485
|
-
"Workspace launch configurations"
|
|
486
|
-
)),
|
|
419
|
+
description: ( localizeWithPath(_moduleId, 35, "Workspace launch configurations")),
|
|
487
420
|
$ref: launchSchemaId
|
|
488
421
|
},
|
|
489
422
|
'tasks': {
|
|
490
423
|
type: 'object',
|
|
491
424
|
default: { version: '2.0.0', tasks: [] },
|
|
492
|
-
description: ( localizeWithPath(
|
|
493
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
494
|
-
'workspaceConfig.tasks.description',
|
|
495
|
-
"Workspace task configurations"
|
|
496
|
-
)),
|
|
425
|
+
description: ( localizeWithPath(_moduleId, 36, "Workspace task configurations")),
|
|
497
426
|
$ref: tasksSchemaId
|
|
498
427
|
},
|
|
499
428
|
'extensions': {
|
|
500
429
|
type: 'object',
|
|
501
430
|
default: {},
|
|
502
|
-
description: ( localizeWithPath(
|
|
503
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
504
|
-
'workspaceConfig.extensions.description',
|
|
505
|
-
"Workspace extensions"
|
|
506
|
-
)),
|
|
431
|
+
description: ( localizeWithPath(_moduleId, 37, "Workspace extensions")),
|
|
507
432
|
$ref: 'vscode://schemas/extensions'
|
|
508
433
|
},
|
|
509
434
|
'remoteAuthority': {
|
|
510
435
|
type: 'string',
|
|
511
436
|
doNotSuggest: true,
|
|
512
|
-
description: ( localizeWithPath(
|
|
513
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
514
|
-
'workspaceConfig.remoteAuthority',
|
|
515
|
-
"The remote server where the workspace is located."
|
|
516
|
-
)),
|
|
437
|
+
description: ( localizeWithPath(_moduleId, 38, "The remote server where the workspace is located.")),
|
|
517
438
|
},
|
|
518
439
|
'transient': {
|
|
519
440
|
type: 'boolean',
|
|
520
441
|
doNotSuggest: true,
|
|
521
442
|
description: ( localizeWithPath(
|
|
522
|
-
|
|
523
|
-
|
|
443
|
+
_moduleId,
|
|
444
|
+
39,
|
|
524
445
|
"A transient workspace will disappear when restarting or reloading."
|
|
525
446
|
)),
|
|
526
447
|
}
|
|
527
448
|
},
|
|
528
|
-
errorMessage: ( localizeWithPath(
|
|
529
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
530
|
-
'unknownWorkspaceProperty',
|
|
531
|
-
"Unknown workspace configuration property"
|
|
532
|
-
))
|
|
449
|
+
errorMessage: ( localizeWithPath(_moduleId, 40, "Unknown workspace configuration property"))
|
|
533
450
|
});
|
|
534
451
|
class SettingsTableRenderer extends Disposable {
|
|
535
452
|
constructor() {
|
|
@@ -550,28 +467,16 @@ class SettingsTableRenderer extends Disposable {
|
|
|
550
467
|
else if (configuration) {
|
|
551
468
|
properties = configuration.properties;
|
|
552
469
|
}
|
|
553
|
-
const contrib = properties ? ( Object.keys(properties)) : [];
|
|
554
|
-
const headers = [( localizeWithPath(
|
|
555
|
-
|
|
556
|
-
'setting name',
|
|
557
|
-
"ID"
|
|
558
|
-
)), ( localizeWithPath(
|
|
559
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
560
|
-
'description',
|
|
561
|
-
"Description"
|
|
562
|
-
)), ( localizeWithPath(
|
|
563
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
564
|
-
'default',
|
|
565
|
-
"Default"
|
|
566
|
-
))];
|
|
567
|
-
const rows = ( contrib.sort((a, b) => a.localeCompare(b))
|
|
470
|
+
const contrib = properties ? ( (Object.keys(properties))) : [];
|
|
471
|
+
const headers = [( localizeWithPath(_moduleId, 41, "ID")), ( localizeWithPath(_moduleId, 42, "Description")), ( localizeWithPath(_moduleId, 43, "Default"))];
|
|
472
|
+
const rows = ( (contrib.sort((a, b) => a.localeCompare(b))
|
|
568
473
|
.map(key => {
|
|
569
474
|
return [
|
|
570
|
-
( new MarkdownString()).appendMarkdown(`\`${key}\``),
|
|
571
|
-
properties[key].markdownDescription ? ( new MarkdownString(properties[key].markdownDescription, false)) : properties[key].description ?? '',
|
|
572
|
-
( new MarkdownString()).appendCodeblock('json', JSON.stringify(isUndefined(properties[key].default) ? getDefaultValue(properties[key].type) : properties[key].default, null, 2)),
|
|
475
|
+
( (new MarkdownString())).appendMarkdown(`\`${key}\``),
|
|
476
|
+
properties[key].markdownDescription ? ( (new MarkdownString(properties[key].markdownDescription, false))) : properties[key].description ?? '',
|
|
477
|
+
( (new MarkdownString())).appendCodeblock('json', JSON.stringify(isUndefined(properties[key].default) ? getDefaultValue(properties[key].type) : properties[key].default, null, 2)),
|
|
573
478
|
];
|
|
574
|
-
}));
|
|
479
|
+
})));
|
|
575
480
|
return {
|
|
576
481
|
data: {
|
|
577
482
|
headers,
|
|
@@ -581,15 +486,11 @@ class SettingsTableRenderer extends Disposable {
|
|
|
581
486
|
};
|
|
582
487
|
}
|
|
583
488
|
}
|
|
584
|
-
( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
489
|
+
( (Registry.as(Extensions$2.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
585
490
|
id: 'configuration',
|
|
586
|
-
label: ( localizeWithPath(
|
|
587
|
-
'vs/workbench/api/common/configurationExtensionPoint',
|
|
588
|
-
'settings',
|
|
589
|
-
"Settings"
|
|
590
|
-
)),
|
|
491
|
+
label: ( localizeWithPath(_moduleId, 44, "Settings")),
|
|
591
492
|
access: {
|
|
592
493
|
canToggle: false
|
|
593
494
|
},
|
|
594
|
-
renderer: ( new SyncDescriptor(SettingsTableRenderer)),
|
|
495
|
+
renderer: ( (new SyncDescriptor(SettingsTableRenderer))),
|
|
595
496
|
});
|