@codingame/monaco-vscode-api 1.76.1 → 1.76.3-next.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/README.md +2 -1
- package/dist/api.js +3 -860
- package/dist/{extHost.js → api2.js} +16555 -13467
- package/dist/async.js +107 -2
- package/dist/audioCue.js +105 -103
- package/dist/button.js +1 -1
- package/dist/cancellation.js +3 -0
- package/dist/configuration.js +7 -344
- package/dist/configuration2.js +339 -0
- package/dist/configurationRegistry.js +441 -0
- package/dist/contextkeys.js +211 -0
- package/dist/debug.d.ts +22 -0
- package/dist/debug.js +15842 -0
- package/dist/dialogs.js +855 -9
- package/dist/extensionResourceLoader.js +96 -0
- package/dist/extensions.d.ts +491 -0
- package/dist/extensions.js +70 -0
- package/dist/{tools.js → extensionsRegistry.js} +2 -30
- package/dist/files.js +1407 -334
- package/dist/iconv.js +43 -0
- package/dist/injection.js +1 -1
- package/dist/jschardet.js +7 -0
- package/dist/keybindings.d.ts +1 -485
- package/dist/keybindings.js +666 -679
- package/dist/labels.js +14 -0
- package/dist/languageConfiguration.d.ts +1 -2
- package/dist/languageConfiguration.js +9 -16
- package/dist/languageService.js +112 -8
- package/dist/languages.d.ts +1 -473
- package/dist/languages.js +2 -12
- package/dist/layout.js +4 -3
- package/dist/layoutService.js +1 -1
- package/dist/missing-services.js +4710 -74
- package/dist/modelEditor.d.ts +324 -2
- package/dist/modelEditor.js +15 -228
- package/dist/monaco.js +7 -72
- package/dist/notifications.js +75 -232
- package/dist/polyfill.js +10715 -2459
- package/dist/resources.js +197 -0
- package/dist/services.d.ts +924 -3
- package/dist/services.js +1 -2
- package/dist/services2.js +2436 -18
- package/dist/snippets.d.ts +1 -473
- package/dist/snippets.js +8 -867
- package/dist/snippetsService.js +868 -0
- package/dist/textFileEditorModel.js +2985 -0
- package/dist/textmate.d.ts +3 -475
- package/dist/textmate.js +19 -29
- package/dist/theme.d.ts +1 -3
- package/dist/theme.js +24 -70
- package/dist/tokenClassification.d.ts +1 -475
- package/dist/tokenClassification.js +11 -37
- package/dist/tokenClassificationRegistry.js +8 -4
- package/dist/variableResolver.js +1711 -0
- package/dist/workbenchThemeService.js +1 -1
- package/dist/workspaceContext.js +1 -3
- package/package.json +27 -12
- package/dist/contextkey.js +0 -419
- package/dist/dialog.web.contribution.js +0 -945
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import './polyfill.js';
|
|
1
|
+
import { o as onServicesInitialized } from './polyfill.js';
|
|
2
2
|
import './missing-services.js';
|
|
3
|
-
import {
|
|
3
|
+
import { E as ExtensionsRegistry } from './extensionsRegistry.js';
|
|
4
4
|
import { g as getTokenClassificationRegistry, a as typeAndModifierIdPattern } from './tokenClassificationRegistry.js';
|
|
5
5
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
6
|
-
import { S as Services } from './services2.js';
|
|
7
|
-
import { bj as DEFAULT_EXTENSION } from './extHost.js';
|
|
8
6
|
const tokenClassificationRegistry = getTokenClassificationRegistry();
|
|
9
|
-
const tokenTypeExtPoint
|
|
7
|
+
const tokenTypeExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
10
8
|
extensionPoint: 'semanticTokenTypes',
|
|
11
9
|
jsonSchema: {
|
|
12
10
|
description: ( localize('contributes.semanticTokenTypes', 'Contributes semantic token types.')),
|
|
@@ -49,7 +47,7 @@ const tokenTypeExtPoint$1 = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
}));
|
|
52
|
-
const tokenModifierExtPoint
|
|
50
|
+
const tokenModifierExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
53
51
|
extensionPoint: 'semanticTokenModifiers',
|
|
54
52
|
jsonSchema: {
|
|
55
53
|
description: ( localize(
|
|
@@ -82,7 +80,7 @@ const tokenModifierExtPoint$1 = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
}));
|
|
85
|
-
const tokenStyleDefaultsExtPoint
|
|
83
|
+
const tokenStyleDefaultsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
86
84
|
extensionPoint: 'semanticTokenScopes',
|
|
87
85
|
jsonSchema: {
|
|
88
86
|
description: ( localize(
|
|
@@ -155,7 +153,7 @@ class TokenClassificationExtensionPoints {
|
|
|
155
153
|
}
|
|
156
154
|
return true;
|
|
157
155
|
}
|
|
158
|
-
tokenTypeExtPoint
|
|
156
|
+
tokenTypeExtPoint.setHandler((extensions, delta) => {
|
|
159
157
|
for (const extension of delta.added) {
|
|
160
158
|
const extensionValue = extension.value;
|
|
161
159
|
const collector = extension.collector;
|
|
@@ -179,7 +177,7 @@ class TokenClassificationExtensionPoints {
|
|
|
179
177
|
}
|
|
180
178
|
}
|
|
181
179
|
});
|
|
182
|
-
tokenModifierExtPoint
|
|
180
|
+
tokenModifierExtPoint.setHandler((extensions, delta) => {
|
|
183
181
|
for (const extension of delta.added) {
|
|
184
182
|
const extensionValue = extension.value;
|
|
185
183
|
const collector = extension.collector;
|
|
@@ -203,7 +201,7 @@ class TokenClassificationExtensionPoints {
|
|
|
203
201
|
}
|
|
204
202
|
}
|
|
205
203
|
});
|
|
206
|
-
tokenStyleDefaultsExtPoint
|
|
204
|
+
tokenStyleDefaultsExtPoint.setHandler((extensions, delta) => {
|
|
207
205
|
for (const extension of delta.added) {
|
|
208
206
|
const extensionValue = extension.value;
|
|
209
207
|
const collector = extension.collector;
|
|
@@ -240,7 +238,7 @@ class TokenClassificationExtensionPoints {
|
|
|
240
238
|
}
|
|
241
239
|
try {
|
|
242
240
|
const selector = tokenClassificationRegistry.parseTokenSelector(selectorString, contribution.language);
|
|
243
|
-
tokenClassificationRegistry.registerTokenStyleDefault(selector, { scopesToProbe: tmScopes.map(s => s.split(' ')) });
|
|
241
|
+
tokenClassificationRegistry.registerTokenStyleDefault(selector, { scopesToProbe: ( tmScopes.map(s => s.split(' '))) });
|
|
244
242
|
}
|
|
245
243
|
catch (e) {
|
|
246
244
|
collector.error(( localize(
|
|
@@ -259,7 +257,7 @@ class TokenClassificationExtensionPoints {
|
|
|
259
257
|
const tmScopes = contribution.scopes[selectorString];
|
|
260
258
|
try {
|
|
261
259
|
const selector = tokenClassificationRegistry.parseTokenSelector(selectorString, contribution.language);
|
|
262
|
-
tokenClassificationRegistry.registerTokenStyleDefault(selector, { scopesToProbe: tmScopes.map(s => s.split(' ')) });
|
|
260
|
+
tokenClassificationRegistry.registerTokenStyleDefault(selector, { scopesToProbe: ( tmScopes.map(s => s.split(' '))) });
|
|
263
261
|
}
|
|
264
262
|
catch (e) {
|
|
265
263
|
}
|
|
@@ -269,30 +267,6 @@ class TokenClassificationExtensionPoints {
|
|
|
269
267
|
});
|
|
270
268
|
}
|
|
271
269
|
}
|
|
272
|
-
const tokenTypeExtPoint = getExtensionPoint('semanticTokenTypes');
|
|
273
|
-
const tokenModifierExtPoint = getExtensionPoint('semanticTokenModifiers');
|
|
274
|
-
const tokenStyleDefaultsExtPoint = getExtensionPoint('semanticTokenScopes');
|
|
275
|
-
function setTokenTypes(tokenTypes, extension = Services.get().extension ?? DEFAULT_EXTENSION) {
|
|
276
|
-
tokenTypeExtPoint.acceptUsers([{
|
|
277
|
-
description: extension,
|
|
278
|
-
value: tokenTypes,
|
|
279
|
-
collector: new ExtensionMessageCollector(consoleExtensionMessageHandler, extension, tokenTypeExtPoint.name)
|
|
280
|
-
}]);
|
|
281
|
-
}
|
|
282
|
-
function setTokenModifiers(tokenModifiers, extension = Services.get().extension ?? DEFAULT_EXTENSION) {
|
|
283
|
-
tokenModifierExtPoint.acceptUsers([{
|
|
284
|
-
description: extension,
|
|
285
|
-
value: tokenModifiers,
|
|
286
|
-
collector: new ExtensionMessageCollector(consoleExtensionMessageHandler, extension, tokenModifierExtPoint.name)
|
|
287
|
-
}]);
|
|
288
|
-
}
|
|
289
|
-
function setTokenStyleDefaults(tokenStyleDefaults, extension = Services.get().extension ?? DEFAULT_EXTENSION) {
|
|
290
|
-
tokenStyleDefaultsExtPoint.acceptUsers([{
|
|
291
|
-
description: extension,
|
|
292
|
-
value: tokenStyleDefaults,
|
|
293
|
-
collector: new ExtensionMessageCollector(consoleExtensionMessageHandler, extension, tokenModifierExtPoint.name)
|
|
294
|
-
}]);
|
|
295
|
-
}
|
|
296
270
|
function initialize(instantiationService) {
|
|
297
271
|
instantiationService.createInstance(TokenClassificationExtensionPoints);
|
|
298
272
|
}
|
|
@@ -300,4 +274,4 @@ function getServiceOverride() {
|
|
|
300
274
|
onServicesInitialized(initialize);
|
|
301
275
|
return {};
|
|
302
276
|
}
|
|
303
|
-
export { getServiceOverride as default
|
|
277
|
+
export { getServiceOverride as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Emitter } from './
|
|
1
|
+
import { E as Emitter } from './services2.js';
|
|
2
2
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
4
4
|
import { Extensions } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
|
|
@@ -320,10 +320,14 @@ class TokenClassificationRegistry {
|
|
|
320
320
|
delete this.tokenStylingSchema.properties[`*.${id}`];
|
|
321
321
|
}
|
|
322
322
|
getTokenTypes() {
|
|
323
|
-
return (
|
|
323
|
+
return (
|
|
324
|
+
(( (Object.keys(this.tokenTypeById))).map(id => this.tokenTypeById[id]))
|
|
325
|
+
);
|
|
324
326
|
}
|
|
325
327
|
getTokenModifiers() {
|
|
326
|
-
return (
|
|
328
|
+
return (
|
|
329
|
+
(( (Object.keys(this.tokenModifierById))).map(id => this.tokenModifierById[id]))
|
|
330
|
+
);
|
|
327
331
|
}
|
|
328
332
|
getTokenStylingSchema() {
|
|
329
333
|
return this.tokenStylingSchema;
|
|
@@ -352,7 +356,7 @@ class TokenClassificationRegistry {
|
|
|
352
356
|
}
|
|
353
357
|
return a.localeCompare(b);
|
|
354
358
|
};
|
|
355
|
-
return ( (Object.keys(this.tokenTypeById))).sort(sorter).map(k => `- \`${k}\`: ${this.tokenTypeById[k].description}`).join('\n');
|
|
359
|
+
return ( (( (Object.keys(this.tokenTypeById))).sort(sorter).map(k => `- \`${k}\`: ${this.tokenTypeById[k].description}`))).join('\n');
|
|
356
360
|
}
|
|
357
361
|
}
|
|
358
362
|
const CHAR_LANGUAGE = TOKEN_CLASSIFIER_LANGUAGE_SEPARATOR.charCodeAt(0);
|