@codingame/monaco-vscode-api 1.85.1 → 1.85.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.
Files changed (67) hide show
  1. package/README.md +18 -5
  2. package/missing-services.js +324 -64
  3. package/monaco-editor-treemending.patch +946 -946
  4. package/package.json +8 -7
  5. package/service-override/tools/editor.js +1 -1
  6. package/services.js +10 -6
  7. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +14 -0
  8. package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +140 -0
  9. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1062 -93
  10. package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.js +220 -0
  11. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +102 -0
  12. package/vscode/src/vs/platform/userDataSync/common/content.js +9 -0
  13. package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +514 -0
  14. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +154 -2
  15. package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.js +43 -1
  16. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +177 -0
  17. package/vscode/src/vs/platform/workspace/common/virtualWorkspace.js +4 -1
  18. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -1
  19. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +1 -1
  20. package/vscode/src/vs/workbench/api/common/extHostWebview.js +2 -2
  21. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +105 -0
  22. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +4 -0
  23. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +1614 -0
  24. package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +7 -7
  25. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +73 -2
  26. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +6 -6
  27. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +12 -2
  28. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +712 -0
  29. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +130 -0
  30. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +2 -1
  31. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +20 -1
  32. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +205 -0
  33. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +11 -0
  34. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +9 -9
  35. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +1 -1
  36. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +2 -2
  37. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.js +24 -1
  38. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +41 -0
  39. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +588 -0
  40. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +43 -0
  41. package/vscode/src/vs/workbench/services/search/common/search.js +3 -3
  42. package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.js +75 -1
  43. package/vscode/src/vs/workbench/services/timer/browser/timerService.js +240 -1
  44. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +31 -1
  45. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +25 -1
  46. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +75 -1
  47. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +74 -4
  48. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +708 -0
  49. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistory.js +4 -0
  50. package/vscode/src/vs/base/parts/request/browser/request.js +0 -60
  51. package/vscode/src/vs/platform/request/browser/requestService.js +0 -28
  52. package/vscode/src/vs/platform/request/common/requestIpc.js +0 -17
  53. package/vscode/src/vs/platform/url/common/urlService.js +0 -17
  54. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +0 -120
  55. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +0 -319
  56. package/vscode/src/vs/workbench/services/files/browser/elevatedFileService.js +0 -9
  57. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +0 -408
  58. package/vscode/src/vs/workbench/services/request/browser/requestService.js +0 -48
  59. package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +0 -56
  60. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +0 -639
  61. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +0 -402
  62. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +0 -62
  63. package/vscode/src/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +0 -38
  64. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +0 -295
  65. package/vscode/src/vs/workbench/services/url/browser/urlService.js +0 -47
  66. package/vscode/src/vs/workbench/services/views/common/treeViewsService.js +0 -20
  67. package/vscode/src/vs/workbench/services/workspaces/common/canonicalUriService.js +0 -19
@@ -1,295 +0,0 @@
1
- import * as nls from 'monaco-editor/esm/vs/nls.js';
2
- import { ExtensionsRegistry } from '../../extensions/common/extensionsRegistry.js';
3
- import { getTokenClassificationRegistry, typeAndModifierIdPattern } from '../../../../platform/theme/common/tokenClassificationRegistry.js';
4
- const tokenClassificationRegistry = getTokenClassificationRegistry();
5
- const tokenTypeExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
6
- extensionPoint: 'semanticTokenTypes',
7
- jsonSchema: {
8
- description: ( nls.localizeWithPath(
9
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
10
- 'contributes.semanticTokenTypes',
11
- 'Contributes semantic token types.'
12
- )),
13
- type: 'array',
14
- items: {
15
- type: 'object',
16
- properties: {
17
- id: {
18
- type: 'string',
19
- description: ( nls.localizeWithPath(
20
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
21
- 'contributes.semanticTokenTypes.id',
22
- 'The identifier of the semantic token type'
23
- )),
24
- pattern: typeAndModifierIdPattern,
25
- patternErrorMessage: ( nls.localizeWithPath(
26
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
27
- 'contributes.semanticTokenTypes.id.format',
28
- 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'
29
- )),
30
- },
31
- superType: {
32
- type: 'string',
33
- description: ( nls.localizeWithPath(
34
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
35
- 'contributes.semanticTokenTypes.superType',
36
- 'The super type of the semantic token type'
37
- )),
38
- pattern: typeAndModifierIdPattern,
39
- patternErrorMessage: ( nls.localizeWithPath(
40
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
41
- 'contributes.semanticTokenTypes.superType.format',
42
- 'Super types should be in the form letterOrDigit[_-letterOrDigit]*'
43
- )),
44
- },
45
- description: {
46
- type: 'string',
47
- description: ( nls.localizeWithPath(
48
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
49
- 'contributes.color.description',
50
- 'The description of the semantic token type'
51
- )),
52
- }
53
- }
54
- }
55
- }
56
- }));
57
- const tokenModifierExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
58
- extensionPoint: 'semanticTokenModifiers',
59
- jsonSchema: {
60
- description: ( nls.localizeWithPath(
61
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
62
- 'contributes.semanticTokenModifiers',
63
- 'Contributes semantic token modifiers.'
64
- )),
65
- type: 'array',
66
- items: {
67
- type: 'object',
68
- properties: {
69
- id: {
70
- type: 'string',
71
- description: ( nls.localizeWithPath(
72
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
73
- 'contributes.semanticTokenModifiers.id',
74
- 'The identifier of the semantic token modifier'
75
- )),
76
- pattern: typeAndModifierIdPattern,
77
- patternErrorMessage: ( nls.localizeWithPath(
78
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
79
- 'contributes.semanticTokenModifiers.id.format',
80
- 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'
81
- ))
82
- },
83
- description: {
84
- description: ( nls.localizeWithPath(
85
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
86
- 'contributes.semanticTokenModifiers.description',
87
- 'The description of the semantic token modifier'
88
- ))
89
- }
90
- }
91
- }
92
- }
93
- }));
94
- const tokenStyleDefaultsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
95
- extensionPoint: 'semanticTokenScopes',
96
- jsonSchema: {
97
- description: ( nls.localizeWithPath(
98
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
99
- 'contributes.semanticTokenScopes',
100
- 'Contributes semantic token scope maps.'
101
- )),
102
- type: 'array',
103
- items: {
104
- type: 'object',
105
- properties: {
106
- language: {
107
- description: ( nls.localizeWithPath(
108
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
109
- 'contributes.semanticTokenScopes.languages',
110
- 'Lists the languge for which the defaults are.'
111
- )),
112
- type: 'string'
113
- },
114
- scopes: {
115
- description: ( nls.localizeWithPath(
116
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
117
- 'contributes.semanticTokenScopes.scopes',
118
- 'Maps a semantic token (described by semantic token selector) to one or more textMate scopes used to represent that token.'
119
- )),
120
- type: 'object',
121
- additionalProperties: {
122
- type: 'array',
123
- items: {
124
- type: 'string'
125
- }
126
- }
127
- }
128
- }
129
- }
130
- }
131
- }));
132
- class TokenClassificationExtensionPoints {
133
- constructor() {
134
- function validateTypeOrModifier(contribution, extensionPoint, collector) {
135
- if (typeof contribution.id !== 'string' || contribution.id.length === 0) {
136
- collector.error(( nls.localizeWithPath(
137
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
138
- 'invalid.id',
139
- "'configuration.{0}.id' must be defined and can not be empty",
140
- extensionPoint
141
- )));
142
- return false;
143
- }
144
- if (!contribution.id.match(typeAndModifierIdPattern)) {
145
- collector.error(( nls.localizeWithPath(
146
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
147
- 'invalid.id.format',
148
- "'configuration.{0}.id' must follow the pattern letterOrDigit[-_letterOrDigit]*",
149
- extensionPoint
150
- )));
151
- return false;
152
- }
153
- const superType = contribution.superType;
154
- if (superType && !superType.match(typeAndModifierIdPattern)) {
155
- collector.error(( nls.localizeWithPath(
156
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
157
- 'invalid.superType.format',
158
- "'configuration.{0}.superType' must follow the pattern letterOrDigit[-_letterOrDigit]*",
159
- extensionPoint
160
- )));
161
- return false;
162
- }
163
- if (typeof contribution.description !== 'string' || contribution.id.length === 0) {
164
- collector.error(( nls.localizeWithPath(
165
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
166
- 'invalid.description',
167
- "'configuration.{0}.description' must be defined and can not be empty",
168
- extensionPoint
169
- )));
170
- return false;
171
- }
172
- return true;
173
- }
174
- tokenTypeExtPoint.setHandler((extensions, delta) => {
175
- for (const extension of delta.added) {
176
- const extensionValue = extension.value;
177
- const collector = extension.collector;
178
- if (!extensionValue || !Array.isArray(extensionValue)) {
179
- collector.error(( nls.localizeWithPath(
180
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
181
- 'invalid.semanticTokenTypeConfiguration',
182
- "'configuration.semanticTokenType' must be an array"
183
- )));
184
- return;
185
- }
186
- for (const contribution of extensionValue) {
187
- if (validateTypeOrModifier(contribution, 'semanticTokenType', collector)) {
188
- tokenClassificationRegistry.registerTokenType(contribution.id, contribution.description, contribution.superType);
189
- }
190
- }
191
- }
192
- for (const extension of delta.removed) {
193
- const extensionValue = extension.value;
194
- for (const contribution of extensionValue) {
195
- tokenClassificationRegistry.deregisterTokenType(contribution.id);
196
- }
197
- }
198
- });
199
- tokenModifierExtPoint.setHandler((extensions, delta) => {
200
- for (const extension of delta.added) {
201
- const extensionValue = extension.value;
202
- const collector = extension.collector;
203
- if (!extensionValue || !Array.isArray(extensionValue)) {
204
- collector.error(( nls.localizeWithPath(
205
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
206
- 'invalid.semanticTokenModifierConfiguration',
207
- "'configuration.semanticTokenModifier' must be an array"
208
- )));
209
- return;
210
- }
211
- for (const contribution of extensionValue) {
212
- if (validateTypeOrModifier(contribution, 'semanticTokenModifier', collector)) {
213
- tokenClassificationRegistry.registerTokenModifier(contribution.id, contribution.description);
214
- }
215
- }
216
- }
217
- for (const extension of delta.removed) {
218
- const extensionValue = extension.value;
219
- for (const contribution of extensionValue) {
220
- tokenClassificationRegistry.deregisterTokenModifier(contribution.id);
221
- }
222
- }
223
- });
224
- tokenStyleDefaultsExtPoint.setHandler((extensions, delta) => {
225
- for (const extension of delta.added) {
226
- const extensionValue = extension.value;
227
- const collector = extension.collector;
228
- if (!extensionValue || !Array.isArray(extensionValue)) {
229
- collector.error(( nls.localizeWithPath(
230
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
231
- 'invalid.semanticTokenScopes.configuration',
232
- "'configuration.semanticTokenScopes' must be an array"
233
- )));
234
- return;
235
- }
236
- for (const contribution of extensionValue) {
237
- if (contribution.language && typeof contribution.language !== 'string') {
238
- collector.error(( nls.localizeWithPath(
239
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
240
- 'invalid.semanticTokenScopes.language',
241
- "'configuration.semanticTokenScopes.language' must be a string"
242
- )));
243
- continue;
244
- }
245
- if (!contribution.scopes || typeof contribution.scopes !== 'object') {
246
- collector.error(( nls.localizeWithPath(
247
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
248
- 'invalid.semanticTokenScopes.scopes',
249
- "'configuration.semanticTokenScopes.scopes' must be defined as an object"
250
- )));
251
- continue;
252
- }
253
- for (const selectorString in contribution.scopes) {
254
- const tmScopes = contribution.scopes[selectorString];
255
- if (!Array.isArray(tmScopes) || ( tmScopes.some(l => typeof l !== 'string'))) {
256
- collector.error(( nls.localizeWithPath(
257
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
258
- 'invalid.semanticTokenScopes.scopes.value',
259
- "'configuration.semanticTokenScopes.scopes' values must be an array of strings"
260
- )));
261
- continue;
262
- }
263
- try {
264
- const selector = tokenClassificationRegistry.parseTokenSelector(selectorString, contribution.language);
265
- tokenClassificationRegistry.registerTokenStyleDefault(selector, { scopesToProbe: ( tmScopes.map(s => s.split(' '))) });
266
- }
267
- catch (e) {
268
- collector.error(( nls.localizeWithPath(
269
- 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
270
- 'invalid.semanticTokenScopes.scopes.selector',
271
- "configuration.semanticTokenScopes.scopes': Problems parsing selector {0}.",
272
- selectorString
273
- )));
274
- }
275
- }
276
- }
277
- }
278
- for (const extension of delta.removed) {
279
- const extensionValue = extension.value;
280
- for (const contribution of extensionValue) {
281
- for (const selectorString in contribution.scopes) {
282
- const tmScopes = contribution.scopes[selectorString];
283
- try {
284
- const selector = tokenClassificationRegistry.parseTokenSelector(selectorString, contribution.language);
285
- tokenClassificationRegistry.registerTokenStyleDefault(selector, { scopesToProbe: ( tmScopes.map(s => s.split(' '))) });
286
- }
287
- catch (e) {
288
- }
289
- }
290
- }
291
- }
292
- });
293
- }
294
- }
295
- export { TokenClassificationExtensionPoints };
@@ -1,47 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
3
- import { AbstractURLService } from '../../../../platform/url/common/urlService.js';
4
- import { IBrowserWorkbenchEnvironmentService } from '../../environment/browser/environmentService.js';
5
- import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
6
- import { matchesScheme } from 'monaco-editor/esm/vs/base/common/network.js';
7
- import { IProductService } from 'monaco-editor/esm/vs/platform/product/common/productService.js';
8
- class BrowserURLOpener {
9
- constructor(urlService, productService) {
10
- this.urlService = urlService;
11
- this.productService = productService;
12
- }
13
- async open(resource, options) {
14
- if (options?.openExternal) {
15
- return false;
16
- }
17
- if (!matchesScheme(resource, this.productService.urlProtocol)) {
18
- return false;
19
- }
20
- if (typeof resource === 'string') {
21
- resource = ( URI.parse(resource));
22
- }
23
- return this.urlService.open(resource, { trusted: true });
24
- }
25
- }
26
- let BrowserURLService = class BrowserURLService extends AbstractURLService {
27
- constructor(environmentService, openerService, productService) {
28
- super();
29
- this.provider = environmentService.options?.urlCallbackProvider;
30
- if (this.provider) {
31
- this._register(this.provider.onCallback(uri => this.open(uri, { trusted: true })));
32
- }
33
- this._register(openerService.registerOpener(( new BrowserURLOpener(this, productService))));
34
- }
35
- create(options) {
36
- if (this.provider) {
37
- return this.provider.create(options);
38
- }
39
- return ( URI.parse('unsupported://'));
40
- }
41
- };
42
- BrowserURLService = ( __decorate([
43
- ( __param(0, IBrowserWorkbenchEnvironmentService)),
44
- ( __param(1, IOpenerService)),
45
- ( __param(2, IProductService))
46
- ], BrowserURLService));
47
- export { BrowserURLService };
@@ -1,20 +0,0 @@
1
- class TreeviewsService {
2
- constructor() {
3
- this._renderedElements = ( new Map());
4
- }
5
- getRenderedTreeElement(node) {
6
- if (( this._renderedElements.has(node))) {
7
- return this._renderedElements.get(node);
8
- }
9
- return undefined;
10
- }
11
- addRenderedTreeItemElement(node, element) {
12
- this._renderedElements.set(node, element);
13
- }
14
- removeRenderedTreeItemElement(node) {
15
- if (( this._renderedElements.has(node))) {
16
- this._renderedElements.delete(node);
17
- }
18
- }
19
- }
20
- export { TreeviewsService };
@@ -1,19 +0,0 @@
1
- class CanonicalUriService {
2
- constructor() {
3
- this._providers = ( new Map());
4
- }
5
- registerCanonicalUriProvider(provider) {
6
- this._providers.set(provider.scheme, provider);
7
- return {
8
- dispose: () => this._providers.delete(provider.scheme)
9
- };
10
- }
11
- async provideCanonicalUri(uri, targetScheme, token) {
12
- const provider = this._providers.get(uri.scheme);
13
- if (provider) {
14
- return provider.provideCanonicalUri(uri, targetScheme, token);
15
- }
16
- return undefined;
17
- }
18
- }
19
- export { CanonicalUriService };