@codingame/monaco-vscode-textmate-service-override 26.2.2 → 28.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-textmate-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - textmate service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "28.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "28.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js
CHANGED
|
@@ -194,7 +194,7 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
|
|
|
194
194
|
}
|
|
195
195
|
startDebugMode(printFn, onStop) {
|
|
196
196
|
if (this._debugMode) {
|
|
197
|
-
this._notificationService.error(( localize(
|
|
197
|
+
this._notificationService.error(( localize(15985, "Already Logging.")));
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
this._debugModePrintFunc = printFn;
|
|
@@ -202,15 +202,15 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
|
|
|
202
202
|
if (this._debugMode) {
|
|
203
203
|
this._progressService.withProgress({
|
|
204
204
|
location: ProgressLocation.Notification,
|
|
205
|
-
buttons: [( localize(
|
|
205
|
+
buttons: [( localize(15986, "Stop"))]
|
|
206
206
|
}, progress => {
|
|
207
207
|
progress.report({
|
|
208
|
-
message: ( localize(
|
|
208
|
+
message: ( localize(15987, "Preparing to log TM Grammar parsing. Press Stop when finished."))
|
|
209
209
|
});
|
|
210
210
|
return this._getVSCodeOniguruma().then(vscodeOniguruma => {
|
|
211
211
|
vscodeOniguruma.setDefaultDebugCall(true);
|
|
212
212
|
progress.report({
|
|
213
|
-
message: ( localize(
|
|
213
|
+
message: ( localize(15988, "Now logging TM Grammar parsing. Press Stop when finished."))
|
|
214
214
|
});
|
|
215
215
|
return ( new Promise((resolve, reject) => {}));
|
|
216
216
|
});
|
|
@@ -418,7 +418,7 @@ function equalsTokenRules(a, b) {
|
|
|
418
418
|
function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _languageService) {
|
|
419
419
|
if (syntax.language && ((typeof syntax.language !== "string") || !_languageService.isRegisteredLanguageId(syntax.language))) {
|
|
420
420
|
collector.error(( localize(
|
|
421
|
-
|
|
421
|
+
15989,
|
|
422
422
|
"Unknown language in `contributes.{0}.language`. Provided value: {1}",
|
|
423
423
|
grammarsExtPoint.name,
|
|
424
424
|
String(syntax.language)
|
|
@@ -427,7 +427,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
|
|
|
427
427
|
}
|
|
428
428
|
if (!syntax.scopeName || (typeof syntax.scopeName !== "string")) {
|
|
429
429
|
collector.error(( localize(
|
|
430
|
-
|
|
430
|
+
15990,
|
|
431
431
|
"Expected string in `contributes.{0}.scopeName`. Provided value: {1}",
|
|
432
432
|
grammarsExtPoint.name,
|
|
433
433
|
String(syntax.scopeName)
|
|
@@ -436,7 +436,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
|
|
|
436
436
|
}
|
|
437
437
|
if (!syntax.path || (typeof syntax.path !== "string")) {
|
|
438
438
|
collector.error(( localize(
|
|
439
|
-
|
|
439
|
+
15991,
|
|
440
440
|
"Expected string in `contributes.{0}.path`. Provided value: {1}",
|
|
441
441
|
grammarsExtPoint.name,
|
|
442
442
|
String(syntax.path)
|
|
@@ -445,7 +445,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
|
|
|
445
445
|
}
|
|
446
446
|
if (syntax.injectTo && (!Array.isArray(syntax.injectTo) || ( syntax.injectTo.some(scope => typeof scope !== "string")))) {
|
|
447
447
|
collector.error(( localize(
|
|
448
|
-
|
|
448
|
+
15992,
|
|
449
449
|
"Invalid value in `contributes.{0}.injectTo`. Must be an array of language scope names. Provided value: {1}",
|
|
450
450
|
grammarsExtPoint.name,
|
|
451
451
|
JSON.stringify(syntax.injectTo)
|
|
@@ -454,7 +454,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
|
|
|
454
454
|
}
|
|
455
455
|
if (syntax.embeddedLanguages && !isObject(syntax.embeddedLanguages)) {
|
|
456
456
|
collector.error(( localize(
|
|
457
|
-
|
|
457
|
+
15993,
|
|
458
458
|
"Invalid value in `contributes.{0}.embeddedLanguages`. Must be an object map from scope name to language. Provided value: {1}",
|
|
459
459
|
grammarsExtPoint.name,
|
|
460
460
|
JSON.stringify(syntax.embeddedLanguages)
|
|
@@ -463,7 +463,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
|
|
|
463
463
|
}
|
|
464
464
|
if (syntax.tokenTypes && !isObject(syntax.tokenTypes)) {
|
|
465
465
|
collector.error(( localize(
|
|
466
|
-
|
|
466
|
+
15994,
|
|
467
467
|
"Invalid value in `contributes.{0}.tokenTypes`. Must be an object map from scope name to token type. Provided value: {1}",
|
|
468
468
|
grammarsExtPoint.name,
|
|
469
469
|
JSON.stringify(syntax.tokenTypes)
|
|
@@ -473,7 +473,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
|
|
|
473
473
|
const grammarLocation = joinPath(extensionLocation, syntax.path);
|
|
474
474
|
if (!isEqualOrParent(grammarLocation, extensionLocation)) {
|
|
475
475
|
collector.warn(( localize(
|
|
476
|
-
|
|
476
|
+
15995,
|
|
477
477
|
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
478
478
|
grammarsExtPoint.name,
|
|
479
479
|
grammarLocation.path,
|