@codingame/monaco-vscode-configuration-service-override 1.83.5 → 1.83.7
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/configuration.d.ts +11 -1
- package/configuration.js +13 -4
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/l10n.js +8 -0
- package/missing-services.js +2141 -0
- package/package.json +2 -2
- package/services.js +90 -0
- package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +214 -42
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +15 -3
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +218 -41
- package/vscode/src/vs/workbench/services/label/common/labelService.js +67 -13
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +20 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-configuration-service-override",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.7",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.83.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.7",
|
|
22
22
|
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/services.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import './missing-services.js';
|
|
2
|
+
export { default as Severity } from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
3
|
+
export { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
4
|
+
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
5
|
+
export { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
6
|
+
export { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
7
|
+
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
8
|
+
import 'vscode/service-override/layout';
|
|
9
|
+
import 'vscode/service-override/environment';
|
|
10
|
+
import 'vscode/service-override/extensions';
|
|
11
|
+
import 'vscode/service-override/files';
|
|
12
|
+
import 'vscode/service-override/quickaccess';
|
|
13
|
+
import { serviceInitializedBarrier } from 'vscode/lifecycle';
|
|
14
|
+
export { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
15
|
+
export { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
16
|
+
export { INotificationService, NeverShowAgainScope, NoOpNotification, NoOpProgress, NotificationPriority, NotificationsFilter } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
17
|
+
export { IBulkEditService } from 'monaco-editor/esm/vs/editor/browser/services/bulkEditService.js';
|
|
18
|
+
export { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
19
|
+
export { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
|
|
20
|
+
export { ILanguageConfigurationService } from 'monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js';
|
|
21
|
+
export { IEditorWorkerService } from 'monaco-editor/esm/vs/editor/common/services/editorWorker.js';
|
|
22
|
+
export { ILanguageFeaturesService } from 'monaco-editor/esm/vs/editor/common/services/languageFeatures.js';
|
|
23
|
+
export { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
24
|
+
export { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
25
|
+
export { IClipboardService } from 'monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js';
|
|
26
|
+
import './override/vs/platform/dialogs/common/dialogs.js';
|
|
27
|
+
export { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
28
|
+
export { IMarkerService } from 'monaco-editor/esm/vs/platform/markers/common/markers.js';
|
|
29
|
+
export { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
|
|
30
|
+
export { IProductService } from 'monaco-editor/esm/vs/platform/product/common/productService.js';
|
|
31
|
+
export { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
32
|
+
export { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
33
|
+
export { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
|
|
34
|
+
export { IBreadcrumbsService } from 'vscode/vscode/vs/workbench/browser/parts/editor/breadcrumbs';
|
|
35
|
+
export { GroupDirection, GroupLocation, GroupOrientation, GroupsArrangement, GroupsOrder, IEditorGroupsService, MergeGroupMode } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
36
|
+
export { CloseDirection, EditorsOrder } from 'vscode/vscode/vs/workbench/common/editor';
|
|
37
|
+
export { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
38
|
+
export { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
39
|
+
export { IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
40
|
+
export { ITextEditorService } from 'vscode/vscode/vs/workbench/services/textfile/common/textEditorService';
|
|
41
|
+
export { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
42
|
+
export { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
43
|
+
export { ILanguageStatusService } from 'vscode/vscode/vs/workbench/services/languageStatus/common/languageStatusService';
|
|
44
|
+
export { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
|
|
45
|
+
export { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService';
|
|
46
|
+
export { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
47
|
+
export { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService';
|
|
48
|
+
export { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
49
|
+
export { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
50
|
+
export { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
51
|
+
export { ISnippetsService } from 'vscode/vscode/vs/workbench/contrib/snippets/browser/snippets';
|
|
52
|
+
export { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
53
|
+
export { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
54
|
+
export { IAudioCueService } from 'monaco-editor/esm/vs/platform/audioCues/browser/audioCueService.js';
|
|
55
|
+
export { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
56
|
+
export { ILogService, ILoggerService, LogLevel } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
57
|
+
export { IViewDescriptorService, IViewsService } from 'vscode/vscode/vs/workbench/common/views';
|
|
58
|
+
export { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
|
|
59
|
+
export { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences';
|
|
60
|
+
export { IPreferencesSearchService } from 'vscode/vscode/vs/workbench/contrib/preferences/common/preferences';
|
|
61
|
+
export { IKeybindingEditingService } from 'vscode/vscode/vs/workbench/services/keybinding/common/keybindingEditing';
|
|
62
|
+
export { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
63
|
+
export { GoFilter, GoScope, IHistoryService } from 'vscode/vscode/vs/workbench/services/history/common/history';
|
|
64
|
+
export { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
65
|
+
export { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
66
|
+
export { IRemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService';
|
|
67
|
+
export { ITerminalInstanceService, ITerminalService } from 'vscode/vscode/vs/workbench/contrib/terminal/browser/terminal';
|
|
68
|
+
export { IFilesConfigurationService } from 'vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService';
|
|
69
|
+
export { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
70
|
+
export { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
|
|
71
|
+
export { IHoverService } from 'vscode/vscode/vs/workbench/services/hover/browser/hover';
|
|
72
|
+
export { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files';
|
|
73
|
+
export { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
74
|
+
export { ITitleService } from 'vscode/vscode/vs/workbench/services/title/common/titleService';
|
|
75
|
+
export { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService';
|
|
76
|
+
export { IWorkspaceTrustEnablementService, IWorkspaceTrustManagementService, IWorkspaceTrustRequestService } from 'monaco-editor/esm/vs/platform/workspace/common/workspaceTrust.js';
|
|
77
|
+
export { IDialogService, IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
78
|
+
|
|
79
|
+
StandaloneServices.withServices(() => {
|
|
80
|
+
return Disposable.None;
|
|
81
|
+
});
|
|
82
|
+
async function waitServicesReady() {
|
|
83
|
+
await serviceInitializedBarrier.wait();
|
|
84
|
+
}
|
|
85
|
+
async function getService(identifier) {
|
|
86
|
+
await waitServicesReady();
|
|
87
|
+
return StandaloneServices.get(identifier);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export { getService, waitServicesReady };
|
|
@@ -15,24 +15,44 @@ const configurationEntrySchema = {
|
|
|
15
15
|
defaultSnippets: [{ body: { title: '', properties: {} } }],
|
|
16
16
|
properties: {
|
|
17
17
|
title: {
|
|
18
|
-
description: nls.localizeWithPath(
|
|
18
|
+
description: ( nls.localizeWithPath(
|
|
19
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
20
|
+
'vscode.extension.contributes.configuration.title',
|
|
21
|
+
'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.'
|
|
22
|
+
)),
|
|
19
23
|
type: 'string'
|
|
20
24
|
},
|
|
21
25
|
order: {
|
|
22
|
-
description: nls.localizeWithPath(
|
|
26
|
+
description: ( nls.localizeWithPath(
|
|
27
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
28
|
+
'vscode.extension.contributes.configuration.order',
|
|
29
|
+
'When specified, gives the order of this category of settings relative to other categories.'
|
|
30
|
+
)),
|
|
23
31
|
type: 'integer'
|
|
24
32
|
},
|
|
25
33
|
properties: {
|
|
26
|
-
description: nls.localizeWithPath(
|
|
34
|
+
description: ( nls.localizeWithPath(
|
|
35
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
36
|
+
'vscode.extension.contributes.configuration.properties',
|
|
37
|
+
'Description of the configuration properties.'
|
|
38
|
+
)),
|
|
27
39
|
type: 'object',
|
|
28
40
|
propertyNames: {
|
|
29
41
|
pattern: '\\S+',
|
|
30
|
-
patternErrorMessage: nls.localizeWithPath(
|
|
42
|
+
patternErrorMessage: ( nls.localizeWithPath(
|
|
43
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
44
|
+
'vscode.extension.contributes.configuration.property.empty',
|
|
45
|
+
'Property should not be empty.'
|
|
46
|
+
)),
|
|
31
47
|
},
|
|
32
48
|
additionalProperties: {
|
|
33
49
|
anyOf: [
|
|
34
50
|
{
|
|
35
|
-
title: nls.localizeWithPath(
|
|
51
|
+
title: ( nls.localizeWithPath(
|
|
52
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
53
|
+
'vscode.extension.contributes.configuration.properties.schema',
|
|
54
|
+
'Schema of the configuration property.'
|
|
55
|
+
)),
|
|
36
56
|
$ref: 'http://json-schema.org/draft-07/schema#'
|
|
37
57
|
},
|
|
38
58
|
{
|
|
@@ -43,65 +63,138 @@ const configurationEntrySchema = {
|
|
|
43
63
|
enum: ['application', 'machine', 'window', 'resource', 'language-overridable', 'machine-overridable'],
|
|
44
64
|
default: 'window',
|
|
45
65
|
enumDescriptions: [
|
|
46
|
-
nls.localizeWithPath(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
nls.localizeWithPath(
|
|
66
|
+
( nls.localizeWithPath(
|
|
67
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
68
|
+
'scope.application.description',
|
|
69
|
+
"Configuration that can be configured only in the user settings."
|
|
70
|
+
)),
|
|
71
|
+
( nls.localizeWithPath(
|
|
72
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
73
|
+
'scope.machine.description',
|
|
74
|
+
"Configuration that can be configured only in the user settings or only in the remote settings."
|
|
75
|
+
)),
|
|
76
|
+
( nls.localizeWithPath(
|
|
77
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
78
|
+
'scope.window.description',
|
|
79
|
+
"Configuration that can be configured in the user, remote or workspace settings."
|
|
80
|
+
)),
|
|
81
|
+
( nls.localizeWithPath(
|
|
82
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
83
|
+
'scope.resource.description',
|
|
84
|
+
"Configuration that can be configured in the user, remote, workspace or folder settings."
|
|
85
|
+
)),
|
|
86
|
+
( nls.localizeWithPath(
|
|
87
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
88
|
+
'scope.language-overridable.description',
|
|
89
|
+
"Resource configuration that can be configured in language specific settings."
|
|
90
|
+
)),
|
|
91
|
+
( nls.localizeWithPath(
|
|
92
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
93
|
+
'scope.machine-overridable.description',
|
|
94
|
+
"Machine configuration that can be configured also in workspace or folder settings."
|
|
95
|
+
))
|
|
52
96
|
],
|
|
53
|
-
markdownDescription: nls.localizeWithPath(
|
|
97
|
+
markdownDescription: ( nls.localizeWithPath(
|
|
98
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
99
|
+
'scope.description',
|
|
100
|
+
"Scope in which the configuration is applicable. Available scopes are `application`, `machine`, `window`, `resource`, and `machine-overridable`."
|
|
101
|
+
))
|
|
54
102
|
},
|
|
55
103
|
enumDescriptions: {
|
|
56
104
|
type: 'array',
|
|
57
105
|
items: {
|
|
58
106
|
type: 'string',
|
|
59
107
|
},
|
|
60
|
-
description: nls.localizeWithPath(
|
|
108
|
+
description: ( nls.localizeWithPath(
|
|
109
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
110
|
+
'scope.enumDescriptions',
|
|
111
|
+
'Descriptions for enum values'
|
|
112
|
+
))
|
|
61
113
|
},
|
|
62
114
|
markdownEnumDescriptions: {
|
|
63
115
|
type: 'array',
|
|
64
116
|
items: {
|
|
65
117
|
type: 'string',
|
|
66
118
|
},
|
|
67
|
-
description: nls.localizeWithPath(
|
|
119
|
+
description: ( nls.localizeWithPath(
|
|
120
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
121
|
+
'scope.markdownEnumDescriptions',
|
|
122
|
+
'Descriptions for enum values in the markdown format.'
|
|
123
|
+
))
|
|
68
124
|
},
|
|
69
125
|
enumItemLabels: {
|
|
70
126
|
type: 'array',
|
|
71
127
|
items: {
|
|
72
128
|
type: 'string'
|
|
73
129
|
},
|
|
74
|
-
markdownDescription: nls.localizeWithPath(
|
|
130
|
+
markdownDescription: ( nls.localizeWithPath(
|
|
131
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
132
|
+
'scope.enumItemLabels',
|
|
133
|
+
'Labels for enum values to be displayed in the Settings editor. When specified, the {0} values still show after the labels, but less prominently.',
|
|
134
|
+
'`enum`'
|
|
135
|
+
))
|
|
75
136
|
},
|
|
76
137
|
markdownDescription: {
|
|
77
138
|
type: 'string',
|
|
78
|
-
description: nls.localizeWithPath(
|
|
139
|
+
description: ( nls.localizeWithPath(
|
|
140
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
141
|
+
'scope.markdownDescription',
|
|
142
|
+
'The description in the markdown format.'
|
|
143
|
+
))
|
|
79
144
|
},
|
|
80
145
|
deprecationMessage: {
|
|
81
146
|
type: 'string',
|
|
82
|
-
description: nls.localizeWithPath(
|
|
147
|
+
description: ( nls.localizeWithPath(
|
|
148
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
149
|
+
'scope.deprecationMessage',
|
|
150
|
+
'If set, the property is marked as deprecated and the given message is shown as an explanation.'
|
|
151
|
+
))
|
|
83
152
|
},
|
|
84
153
|
markdownDeprecationMessage: {
|
|
85
154
|
type: 'string',
|
|
86
|
-
description: nls.localizeWithPath(
|
|
155
|
+
description: ( nls.localizeWithPath(
|
|
156
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
157
|
+
'scope.markdownDeprecationMessage',
|
|
158
|
+
'If set, the property is marked as deprecated and the given message is shown as an explanation in the markdown format.'
|
|
159
|
+
))
|
|
87
160
|
},
|
|
88
161
|
editPresentation: {
|
|
89
162
|
type: 'string',
|
|
90
163
|
enum: ['singlelineText', 'multilineText'],
|
|
91
164
|
enumDescriptions: [
|
|
92
|
-
nls.localizeWithPath(
|
|
93
|
-
|
|
165
|
+
( nls.localizeWithPath(
|
|
166
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
167
|
+
'scope.singlelineText.description',
|
|
168
|
+
'The value will be shown in an inputbox.'
|
|
169
|
+
)),
|
|
170
|
+
( nls.localizeWithPath(
|
|
171
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
172
|
+
'scope.multilineText.description',
|
|
173
|
+
'The value will be shown in a textarea.'
|
|
174
|
+
))
|
|
94
175
|
],
|
|
95
176
|
default: 'singlelineText',
|
|
96
|
-
description: nls.localizeWithPath(
|
|
177
|
+
description: ( nls.localizeWithPath(
|
|
178
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
179
|
+
'scope.editPresentation',
|
|
180
|
+
'When specified, controls the presentation format of the string setting.'
|
|
181
|
+
))
|
|
97
182
|
},
|
|
98
183
|
order: {
|
|
99
184
|
type: 'integer',
|
|
100
|
-
description: nls.localizeWithPath(
|
|
185
|
+
description: ( nls.localizeWithPath(
|
|
186
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
187
|
+
'scope.order',
|
|
188
|
+
'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.'
|
|
189
|
+
))
|
|
101
190
|
},
|
|
102
191
|
ignoreSync: {
|
|
103
192
|
type: 'boolean',
|
|
104
|
-
description: nls.localizeWithPath(
|
|
193
|
+
description: ( nls.localizeWithPath(
|
|
194
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
195
|
+
'scope.ignoreSync',
|
|
196
|
+
'When enabled, Settings Sync will not sync the user value of this configuration by default.'
|
|
197
|
+
))
|
|
105
198
|
},
|
|
106
199
|
}
|
|
107
200
|
}
|
|
@@ -143,7 +236,12 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
143
236
|
if (!OVERRIDE_PROPERTY_REGEX.test(key)) {
|
|
144
237
|
const registeredPropertyScheme = registeredProperties[key];
|
|
145
238
|
if (registeredPropertyScheme?.scope && !allowedScopes.includes(registeredPropertyScheme.scope)) {
|
|
146
|
-
extension.collector.warn(nls.localizeWithPath(
|
|
239
|
+
extension.collector.warn(( nls.localizeWithPath(
|
|
240
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
241
|
+
'config.property.defaultConfiguration.warning',
|
|
242
|
+
"Cannot register configuration defaults for '{0}'. Only defaults for machine-overridable, window, resource and language overridable scoped settings are supported.",
|
|
243
|
+
key
|
|
244
|
+
)));
|
|
147
245
|
delete overrides[key];
|
|
148
246
|
}
|
|
149
247
|
}
|
|
@@ -157,7 +255,11 @@ const configurationExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
157
255
|
extensionPoint: 'configuration',
|
|
158
256
|
deps: [defaultConfigurationExtPoint],
|
|
159
257
|
jsonSchema: {
|
|
160
|
-
description: nls.localizeWithPath(
|
|
258
|
+
description: ( nls.localizeWithPath(
|
|
259
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
260
|
+
'vscode.extension.contributes.configuration',
|
|
261
|
+
'Contributes configuration settings.'
|
|
262
|
+
)),
|
|
161
263
|
oneOf: [
|
|
162
264
|
configurationEntrySchema,
|
|
163
265
|
{
|
|
@@ -183,7 +285,11 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
183
285
|
const configurations = [];
|
|
184
286
|
const configuration = objects.deepClone(node);
|
|
185
287
|
if (configuration.title && (typeof configuration.title !== 'string')) {
|
|
186
|
-
extension.collector.error(nls.localizeWithPath(
|
|
288
|
+
extension.collector.error(( nls.localizeWithPath(
|
|
289
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
290
|
+
'invalid.title',
|
|
291
|
+
"'configuration.title' must be a string"
|
|
292
|
+
)));
|
|
187
293
|
}
|
|
188
294
|
validateProperties(configuration, extension);
|
|
189
295
|
configuration.id = node.id || extension.description.identifier.value;
|
|
@@ -197,7 +303,11 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
197
303
|
const properties = configuration.properties;
|
|
198
304
|
if (properties) {
|
|
199
305
|
if (typeof properties !== 'object') {
|
|
200
|
-
extension.collector.error(nls.localizeWithPath(
|
|
306
|
+
extension.collector.error(( nls.localizeWithPath(
|
|
307
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
308
|
+
'invalid.properties',
|
|
309
|
+
"'configuration.properties' must be an object"
|
|
310
|
+
)));
|
|
201
311
|
configuration.properties = {};
|
|
202
312
|
}
|
|
203
313
|
for (const key in properties) {
|
|
@@ -210,12 +320,22 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
210
320
|
}
|
|
211
321
|
if (( seenProperties.has(key))) {
|
|
212
322
|
delete properties[key];
|
|
213
|
-
extension.collector.warn(nls.localizeWithPath(
|
|
323
|
+
extension.collector.warn(( nls.localizeWithPath(
|
|
324
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
325
|
+
'config.property.duplicate',
|
|
326
|
+
"Cannot register '{0}'. This property is already registered.",
|
|
327
|
+
key
|
|
328
|
+
)));
|
|
214
329
|
continue;
|
|
215
330
|
}
|
|
216
331
|
if (!isObject(propertyConfiguration)) {
|
|
217
332
|
delete properties[key];
|
|
218
|
-
extension.collector.error(nls.localizeWithPath(
|
|
333
|
+
extension.collector.error(( nls.localizeWithPath(
|
|
334
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
335
|
+
'invalid.property',
|
|
336
|
+
"configuration.properties property '{0}' must be an object",
|
|
337
|
+
key
|
|
338
|
+
)));
|
|
219
339
|
continue;
|
|
220
340
|
}
|
|
221
341
|
seenProperties.add(key);
|
|
@@ -246,7 +366,11 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
246
366
|
}
|
|
247
367
|
const subNodes = configuration.allOf;
|
|
248
368
|
if (subNodes) {
|
|
249
|
-
extension.collector.error(nls.localizeWithPath(
|
|
369
|
+
extension.collector.error(( nls.localizeWithPath(
|
|
370
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
371
|
+
'invalid.allOf',
|
|
372
|
+
"'configuration.allOf' is deprecated and should no longer be used. Instead, pass multiple configuration sections as an array to the 'configuration' contribution point."
|
|
373
|
+
)));
|
|
250
374
|
for (const node of subNodes) {
|
|
251
375
|
validateProperties(node, extension);
|
|
252
376
|
}
|
|
@@ -287,7 +411,11 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
287
411
|
'folders': {
|
|
288
412
|
minItems: 0,
|
|
289
413
|
uniqueItems: true,
|
|
290
|
-
description: nls.localizeWithPath(
|
|
414
|
+
description: ( nls.localizeWithPath(
|
|
415
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
416
|
+
'workspaceConfig.folders.description',
|
|
417
|
+
"List of folders to be loaded in the workspace."
|
|
418
|
+
)),
|
|
291
419
|
items: {
|
|
292
420
|
type: 'object',
|
|
293
421
|
defaultSnippets: [{ body: { path: '$1' } }],
|
|
@@ -295,11 +423,19 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
295
423
|
properties: {
|
|
296
424
|
path: {
|
|
297
425
|
type: 'string',
|
|
298
|
-
description: nls.localizeWithPath(
|
|
426
|
+
description: ( nls.localizeWithPath(
|
|
427
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
428
|
+
'workspaceConfig.path.description',
|
|
429
|
+
"A file path. e.g. `/root/folderA` or `./folderA` for a relative path that will be resolved against the location of the workspace file."
|
|
430
|
+
))
|
|
299
431
|
},
|
|
300
432
|
name: {
|
|
301
433
|
type: 'string',
|
|
302
|
-
description: nls.localizeWithPath(
|
|
434
|
+
description: ( nls.localizeWithPath(
|
|
435
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
436
|
+
'workspaceConfig.name.description',
|
|
437
|
+
"An optional name for the folder. "
|
|
438
|
+
))
|
|
303
439
|
}
|
|
304
440
|
},
|
|
305
441
|
required: ['path']
|
|
@@ -307,11 +443,19 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
307
443
|
properties: {
|
|
308
444
|
uri: {
|
|
309
445
|
type: 'string',
|
|
310
|
-
description: nls.localizeWithPath(
|
|
446
|
+
description: ( nls.localizeWithPath(
|
|
447
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
448
|
+
'workspaceConfig.uri.description',
|
|
449
|
+
"URI of the folder"
|
|
450
|
+
))
|
|
311
451
|
},
|
|
312
452
|
name: {
|
|
313
453
|
type: 'string',
|
|
314
|
-
description: nls.localizeWithPath(
|
|
454
|
+
description: ( nls.localizeWithPath(
|
|
455
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
456
|
+
'workspaceConfig.name.description',
|
|
457
|
+
"An optional name for the folder. "
|
|
458
|
+
))
|
|
315
459
|
}
|
|
316
460
|
},
|
|
317
461
|
required: ['uri']
|
|
@@ -321,37 +465,65 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
321
465
|
'settings': {
|
|
322
466
|
type: 'object',
|
|
323
467
|
default: {},
|
|
324
|
-
description: nls.localizeWithPath(
|
|
468
|
+
description: ( nls.localizeWithPath(
|
|
469
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
470
|
+
'workspaceConfig.settings.description',
|
|
471
|
+
"Workspace settings"
|
|
472
|
+
)),
|
|
325
473
|
$ref: workspaceSettingsSchemaId
|
|
326
474
|
},
|
|
327
475
|
'launch': {
|
|
328
476
|
type: 'object',
|
|
329
477
|
default: { configurations: [], compounds: [] },
|
|
330
|
-
description: nls.localizeWithPath(
|
|
478
|
+
description: ( nls.localizeWithPath(
|
|
479
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
480
|
+
'workspaceConfig.launch.description',
|
|
481
|
+
"Workspace launch configurations"
|
|
482
|
+
)),
|
|
331
483
|
$ref: launchSchemaId
|
|
332
484
|
},
|
|
333
485
|
'tasks': {
|
|
334
486
|
type: 'object',
|
|
335
487
|
default: { version: '2.0.0', tasks: [] },
|
|
336
|
-
description: nls.localizeWithPath(
|
|
488
|
+
description: ( nls.localizeWithPath(
|
|
489
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
490
|
+
'workspaceConfig.tasks.description',
|
|
491
|
+
"Workspace task configurations"
|
|
492
|
+
)),
|
|
337
493
|
$ref: tasksSchemaId
|
|
338
494
|
},
|
|
339
495
|
'extensions': {
|
|
340
496
|
type: 'object',
|
|
341
497
|
default: {},
|
|
342
|
-
description: nls.localizeWithPath(
|
|
498
|
+
description: ( nls.localizeWithPath(
|
|
499
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
500
|
+
'workspaceConfig.extensions.description',
|
|
501
|
+
"Workspace extensions"
|
|
502
|
+
)),
|
|
343
503
|
$ref: 'vscode://schemas/extensions'
|
|
344
504
|
},
|
|
345
505
|
'remoteAuthority': {
|
|
346
506
|
type: 'string',
|
|
347
507
|
doNotSuggest: true,
|
|
348
|
-
description: nls.localizeWithPath(
|
|
508
|
+
description: ( nls.localizeWithPath(
|
|
509
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
510
|
+
'workspaceConfig.remoteAuthority',
|
|
511
|
+
"The remote server where the workspace is located."
|
|
512
|
+
)),
|
|
349
513
|
},
|
|
350
514
|
'transient': {
|
|
351
515
|
type: 'boolean',
|
|
352
516
|
doNotSuggest: true,
|
|
353
|
-
description: nls.localizeWithPath(
|
|
517
|
+
description: ( nls.localizeWithPath(
|
|
518
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
519
|
+
'workspaceConfig.transient',
|
|
520
|
+
"A transient workspace will disappear when restarting or reloading."
|
|
521
|
+
)),
|
|
354
522
|
}
|
|
355
523
|
},
|
|
356
|
-
errorMessage: nls.localizeWithPath(
|
|
524
|
+
errorMessage: ( nls.localizeWithPath(
|
|
525
|
+
'vs/workbench/api/common/configurationExtensionPoint',
|
|
526
|
+
'unknownWorkspaceProperty',
|
|
527
|
+
"Unknown workspace configuration property"
|
|
528
|
+
))
|
|
357
529
|
});
|
|
@@ -1045,7 +1045,11 @@ let RegisterConfigurationSchemasContribution = class RegisterConfigurationSchema
|
|
|
1045
1045
|
} : workspaceSettingsSchema;
|
|
1046
1046
|
const configDefaultsSchema = {
|
|
1047
1047
|
type: 'object',
|
|
1048
|
-
description: localizeWithPath(
|
|
1048
|
+
description: ( localizeWithPath(
|
|
1049
|
+
'vs/workbench/services/configuration/browser/configurationService',
|
|
1050
|
+
'configurationDefaults.description',
|
|
1051
|
+
'Contribute defaults for configurations'
|
|
1052
|
+
)),
|
|
1049
1053
|
properties: Object.assign({}, machineOverridableSettings.properties, windowSettings.properties, resourceSettings.properties),
|
|
1050
1054
|
patternProperties: {
|
|
1051
1055
|
[OVERRIDE_PROPERTY_PATTERN]: {
|
|
@@ -1126,7 +1130,11 @@ let UpdateExperimentalSettingsDefaults = class UpdateExperimentalSettingsDefault
|
|
|
1126
1130
|
catch (error) { }
|
|
1127
1131
|
}
|
|
1128
1132
|
if (( Object.keys(overrides)).length) {
|
|
1129
|
-
this.configurationRegistry.registerDefaultConfigurations([{ overrides, source: localizeWithPath(
|
|
1133
|
+
this.configurationRegistry.registerDefaultConfigurations([{ overrides, source: ( localizeWithPath(
|
|
1134
|
+
'vs/workbench/services/configuration/browser/configurationService',
|
|
1135
|
+
'experimental',
|
|
1136
|
+
"Experiments"
|
|
1137
|
+
)) }]);
|
|
1130
1138
|
}
|
|
1131
1139
|
}
|
|
1132
1140
|
};
|
|
@@ -1142,7 +1150,11 @@ configurationRegistry.registerConfiguration({
|
|
|
1142
1150
|
properties: {
|
|
1143
1151
|
[APPLY_ALL_PROFILES_SETTING]: {
|
|
1144
1152
|
'type': 'array',
|
|
1145
|
-
description: localizeWithPath(
|
|
1153
|
+
description: ( localizeWithPath(
|
|
1154
|
+
'vs/workbench/services/configuration/browser/configurationService',
|
|
1155
|
+
'setting description',
|
|
1156
|
+
"Configure settings to be applied for all profiles."
|
|
1157
|
+
)),
|
|
1146
1158
|
'default': [],
|
|
1147
1159
|
'scope': 1 ,
|
|
1148
1160
|
additionalProperties: true,
|