@codingame/monaco-vscode-textmate-service-override 30.0.1 → 31.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": "30.0.1",
3
+ "version": "31.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": "30.0.1",
19
- "@codingame/monaco-vscode-files-service-override": "30.0.1"
18
+ "@codingame/monaco-vscode-api": "31.0.0",
19
+ "@codingame/monaco-vscode-files-service-override": "31.0.0"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -167,6 +167,9 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
167
167
  case "comment":
168
168
  tokenTypes[scope] = StandardTokenType.Comment;
169
169
  break;
170
+ case "regex":
171
+ tokenTypes[scope] = StandardTokenType.RegEx;
172
+ break;
170
173
  }
171
174
  }
172
175
  }
@@ -194,7 +197,7 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
194
197
  }
195
198
  startDebugMode(printFn, onStop) {
196
199
  if (this._debugMode) {
197
- this._notificationService.error(( localize(16367, "Already Logging.")));
200
+ this._notificationService.error(( localize(16584, "Already Logging.")));
198
201
  return;
199
202
  }
200
203
  this._debugModePrintFunc = printFn;
@@ -202,15 +205,15 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
202
205
  if (this._debugMode) {
203
206
  this._progressService.withProgress({
204
207
  location: ProgressLocation.Notification,
205
- buttons: [( localize(16368, "Stop"))]
208
+ buttons: [( localize(16585, "Stop"))]
206
209
  }, progress => {
207
210
  progress.report({
208
- message: ( localize(16369, "Preparing to log TM Grammar parsing. Press Stop when finished."))
211
+ message: ( localize(16586, "Preparing to log TM Grammar parsing. Press Stop when finished."))
209
212
  });
210
213
  return this._getVSCodeOniguruma().then(vscodeOniguruma => {
211
214
  vscodeOniguruma.setDefaultDebugCall(true);
212
215
  progress.report({
213
- message: ( localize(16370, "Now logging TM Grammar parsing. Press Stop when finished."))
216
+ message: ( localize(16587, "Now logging TM Grammar parsing. Press Stop when finished."))
214
217
  });
215
218
  return ( new Promise((resolve, reject) => {}));
216
219
  });
@@ -418,7 +421,7 @@ function equalsTokenRules(a, b) {
418
421
  function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _languageService) {
419
422
  if (syntax.language && ((typeof syntax.language !== "string") || !_languageService.isRegisteredLanguageId(syntax.language))) {
420
423
  collector.error(( localize(
421
- 16371,
424
+ 16588,
422
425
  "Unknown language in `contributes.{0}.language`. Provided value: {1}",
423
426
  grammarsExtPoint.name,
424
427
  String(syntax.language)
@@ -427,7 +430,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
427
430
  }
428
431
  if (!syntax.scopeName || (typeof syntax.scopeName !== "string")) {
429
432
  collector.error(( localize(
430
- 16372,
433
+ 16589,
431
434
  "Expected string in `contributes.{0}.scopeName`. Provided value: {1}",
432
435
  grammarsExtPoint.name,
433
436
  String(syntax.scopeName)
@@ -436,7 +439,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
436
439
  }
437
440
  if (!syntax.path || (typeof syntax.path !== "string")) {
438
441
  collector.error(( localize(
439
- 16373,
442
+ 16590,
440
443
  "Expected string in `contributes.{0}.path`. Provided value: {1}",
441
444
  grammarsExtPoint.name,
442
445
  String(syntax.path)
@@ -445,7 +448,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
445
448
  }
446
449
  if (syntax.injectTo && (!Array.isArray(syntax.injectTo) || ( syntax.injectTo.some(scope => typeof scope !== "string")))) {
447
450
  collector.error(( localize(
448
- 16374,
451
+ 16591,
449
452
  "Invalid value in `contributes.{0}.injectTo`. Must be an array of language scope names. Provided value: {1}",
450
453
  grammarsExtPoint.name,
451
454
  JSON.stringify(syntax.injectTo)
@@ -454,7 +457,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
454
457
  }
455
458
  if (syntax.embeddedLanguages && !isObject(syntax.embeddedLanguages)) {
456
459
  collector.error(( localize(
457
- 16375,
460
+ 16592,
458
461
  "Invalid value in `contributes.{0}.embeddedLanguages`. Must be an object map from scope name to language. Provided value: {1}",
459
462
  grammarsExtPoint.name,
460
463
  JSON.stringify(syntax.embeddedLanguages)
@@ -463,7 +466,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
463
466
  }
464
467
  if (syntax.tokenTypes && !isObject(syntax.tokenTypes)) {
465
468
  collector.error(( localize(
466
- 16376,
469
+ 16593,
467
470
  "Invalid value in `contributes.{0}.tokenTypes`. Must be an object map from scope name to token type. Provided value: {1}",
468
471
  grammarsExtPoint.name,
469
472
  JSON.stringify(syntax.tokenTypes)
@@ -473,7 +476,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
473
476
  const grammarLocation = joinPath(extensionLocation, syntax.path);
474
477
  if (!isEqualOrParent(grammarLocation, extensionLocation)) {
475
478
  collector.warn(( localize(
476
- 16377,
479
+ 16594,
477
480
  "Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
478
481
  grammarsExtPoint.name,
479
482
  grammarLocation.path,