@codingame/monaco-vscode-textmate-service-override 23.0.2 → 23.0.4

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": "23.0.2",
3
+ "version": "23.0.4",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - textmate service-override",
6
6
  "keywords": [],
@@ -15,11 +15,11 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-10416640-ca84-5eff-95ce-dea977ccba7a-common": "23.0.2",
19
- "@codingame/monaco-vscode-33833ac7-3af3-5e9d-8fb9-11838d852c59-common": "23.0.2",
20
- "@codingame/monaco-vscode-api": "23.0.2",
21
- "@codingame/monaco-vscode-e7e3c399-ecb3-58fd-82d6-1d2f4e38813e-common": "23.0.2",
22
- "@codingame/monaco-vscode-files-service-override": "23.0.2",
18
+ "@codingame/monaco-vscode-10416640-ca84-5eff-95ce-dea977ccba7a-common": "23.0.4",
19
+ "@codingame/monaco-vscode-33833ac7-3af3-5e9d-8fb9-11838d852c59-common": "23.0.4",
20
+ "@codingame/monaco-vscode-api": "23.0.4",
21
+ "@codingame/monaco-vscode-e7e3c399-ecb3-58fd-82d6-1d2f4e38813e-common": "23.0.4",
22
+ "@codingame/monaco-vscode-files-service-override": "23.0.4",
23
23
  "vscode-oniguruma": "1.7.0",
24
24
  "vscode-textmate": "9.2.1"
25
25
  },
@@ -164,7 +164,7 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
164
164
  }
165
165
  startDebugMode(printFn, onStop) {
166
166
  if (this._debugMode) {
167
- this._notificationService.error(( localize(14058, "Already Logging.")));
167
+ this._notificationService.error(( localize(14061, "Already Logging.")));
168
168
  return;
169
169
  }
170
170
  this._debugModePrintFunc = printFn;
@@ -172,15 +172,15 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
172
172
  if (this._debugMode) {
173
173
  this._progressService.withProgress({
174
174
  location: ProgressLocation.Notification,
175
- buttons: [( localize(14059, "Stop"))]
175
+ buttons: [( localize(14062, "Stop"))]
176
176
  }, (progress) => {
177
177
  progress.report({
178
- message: ( localize(14060, "Preparing to log TM Grammar parsing. Press Stop when finished."))
178
+ message: ( localize(14063, "Preparing to log TM Grammar parsing. Press Stop when finished."))
179
179
  });
180
180
  return this._getVSCodeOniguruma().then((vscodeOniguruma) => {
181
181
  vscodeOniguruma.setDefaultDebugCall(true);
182
182
  progress.report({
183
- message: ( localize(14061, "Now logging TM Grammar parsing. Press Stop when finished."))
183
+ message: ( localize(14064, "Now logging TM Grammar parsing. Press Stop when finished."))
184
184
  });
185
185
  return ( new Promise((resolve, reject) => { }));
186
186
  });
@@ -384,7 +384,7 @@ function equalsTokenRules(a, b) {
384
384
  function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _languageService) {
385
385
  if (syntax.language && ((typeof syntax.language !== 'string') || !_languageService.isRegisteredLanguageId(syntax.language))) {
386
386
  collector.error(( localize(
387
- 14062,
387
+ 14065,
388
388
  "Unknown language in `contributes.{0}.language`. Provided value: {1}",
389
389
  grammarsExtPoint.name,
390
390
  String(syntax.language)
@@ -393,7 +393,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
393
393
  }
394
394
  if (!syntax.scopeName || (typeof syntax.scopeName !== 'string')) {
395
395
  collector.error(( localize(
396
- 14063,
396
+ 14066,
397
397
  "Expected string in `contributes.{0}.scopeName`. Provided value: {1}",
398
398
  grammarsExtPoint.name,
399
399
  String(syntax.scopeName)
@@ -402,7 +402,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
402
402
  }
403
403
  if (!syntax.path || (typeof syntax.path !== 'string')) {
404
404
  collector.error(( localize(
405
- 14064,
405
+ 14067,
406
406
  "Expected string in `contributes.{0}.path`. Provided value: {1}",
407
407
  grammarsExtPoint.name,
408
408
  String(syntax.path)
@@ -411,7 +411,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
411
411
  }
412
412
  if (syntax.injectTo && (!Array.isArray(syntax.injectTo) || ( syntax.injectTo.some(scope => typeof scope !== 'string')))) {
413
413
  collector.error(( localize(
414
- 14065,
414
+ 14068,
415
415
  "Invalid value in `contributes.{0}.injectTo`. Must be an array of language scope names. Provided value: {1}",
416
416
  grammarsExtPoint.name,
417
417
  JSON.stringify(syntax.injectTo)
@@ -420,7 +420,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
420
420
  }
421
421
  if (syntax.embeddedLanguages && !isObject(syntax.embeddedLanguages)) {
422
422
  collector.error(( localize(
423
- 14066,
423
+ 14069,
424
424
  "Invalid value in `contributes.{0}.embeddedLanguages`. Must be an object map from scope name to language. Provided value: {1}",
425
425
  grammarsExtPoint.name,
426
426
  JSON.stringify(syntax.embeddedLanguages)
@@ -429,7 +429,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
429
429
  }
430
430
  if (syntax.tokenTypes && !isObject(syntax.tokenTypes)) {
431
431
  collector.error(( localize(
432
- 14067,
432
+ 14070,
433
433
  "Invalid value in `contributes.{0}.tokenTypes`. Must be an object map from scope name to token type. Provided value: {1}",
434
434
  grammarsExtPoint.name,
435
435
  JSON.stringify(syntax.tokenTypes)
@@ -439,7 +439,7 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
439
439
  const grammarLocation = joinPath(extensionLocation, syntax.path);
440
440
  if (!isEqualOrParent(grammarLocation, extensionLocation)) {
441
441
  collector.warn(( localize(
442
- 14068,
442
+ 14071,
443
443
  "Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
444
444
  grammarsExtPoint.name,
445
445
  grammarLocation.path,
@@ -10,26 +10,26 @@ const tokenClassificationRegistry = getTokenClassificationRegistry();
10
10
  const tokenTypeExtPoint = ExtensionsRegistry.registerExtensionPoint({
11
11
  extensionPoint: 'semanticTokenTypes',
12
12
  jsonSchema: {
13
- description: ( localize(14265, 'Contributes semantic token types.')),
13
+ description: ( localize(14268, 'Contributes semantic token types.')),
14
14
  type: 'array',
15
15
  items: {
16
16
  type: 'object',
17
17
  properties: {
18
18
  id: {
19
19
  type: 'string',
20
- description: ( localize(14266, 'The identifier of the semantic token type')),
20
+ description: ( localize(14269, 'The identifier of the semantic token type')),
21
21
  pattern: typeAndModifierIdPattern,
22
- patternErrorMessage: ( localize(14267, 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*')),
22
+ patternErrorMessage: ( localize(14270, 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*')),
23
23
  },
24
24
  superType: {
25
25
  type: 'string',
26
- description: ( localize(14268, 'The super type of the semantic token type')),
26
+ description: ( localize(14271, 'The super type of the semantic token type')),
27
27
  pattern: typeAndModifierIdPattern,
28
- patternErrorMessage: ( localize(14269, 'Super types should be in the form letterOrDigit[_-letterOrDigit]*')),
28
+ patternErrorMessage: ( localize(14272, 'Super types should be in the form letterOrDigit[_-letterOrDigit]*')),
29
29
  },
30
30
  description: {
31
31
  type: 'string',
32
- description: ( localize(14270, 'The description of the semantic token type')),
32
+ description: ( localize(14273, 'The description of the semantic token type')),
33
33
  }
34
34
  }
35
35
  }
@@ -38,20 +38,20 @@ const tokenTypeExtPoint = ExtensionsRegistry.registerExtensionPoint({
38
38
  const tokenModifierExtPoint = ExtensionsRegistry.registerExtensionPoint({
39
39
  extensionPoint: 'semanticTokenModifiers',
40
40
  jsonSchema: {
41
- description: ( localize(14271, 'Contributes semantic token modifiers.')),
41
+ description: ( localize(14274, 'Contributes semantic token modifiers.')),
42
42
  type: 'array',
43
43
  items: {
44
44
  type: 'object',
45
45
  properties: {
46
46
  id: {
47
47
  type: 'string',
48
- description: ( localize(14272, 'The identifier of the semantic token modifier')),
48
+ description: ( localize(14275, 'The identifier of the semantic token modifier')),
49
49
  pattern: typeAndModifierIdPattern,
50
- patternErrorMessage: ( localize(14273, 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'))
50
+ patternErrorMessage: ( localize(14276, 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'))
51
51
  },
52
52
  description: {
53
53
  type: 'string',
54
- description: ( localize(14274, 'The description of the semantic token modifier'))
54
+ description: ( localize(14277, 'The description of the semantic token modifier'))
55
55
  }
56
56
  }
57
57
  }
@@ -60,18 +60,18 @@ const tokenModifierExtPoint = ExtensionsRegistry.registerExtensionPoint({
60
60
  const tokenStyleDefaultsExtPoint = ExtensionsRegistry.registerExtensionPoint({
61
61
  extensionPoint: 'semanticTokenScopes',
62
62
  jsonSchema: {
63
- description: ( localize(14275, 'Contributes semantic token scope maps.')),
63
+ description: ( localize(14278, 'Contributes semantic token scope maps.')),
64
64
  type: 'array',
65
65
  items: {
66
66
  type: 'object',
67
67
  properties: {
68
68
  language: {
69
- description: ( localize(14276, 'Lists the languge for which the defaults are.')),
69
+ description: ( localize(14279, 'Lists the languge for which the defaults are.')),
70
70
  type: 'string'
71
71
  },
72
72
  scopes: {
73
73
  description: ( localize(
74
- 14277,
74
+ 14280,
75
75
  'Maps a semantic token (described by semantic token selector) to one or more textMate scopes used to represent that token.'
76
76
  )),
77
77
  type: 'object',
@@ -91,7 +91,7 @@ class TokenClassificationExtensionPoints {
91
91
  function validateTypeOrModifier(contribution, extensionPoint, collector) {
92
92
  if (typeof contribution.id !== 'string' || contribution.id.length === 0) {
93
93
  collector.error(( localize(
94
- 14278,
94
+ 14281,
95
95
  "'configuration.{0}.id' must be defined and can not be empty",
96
96
  extensionPoint
97
97
  )));
@@ -99,7 +99,7 @@ class TokenClassificationExtensionPoints {
99
99
  }
100
100
  if (!contribution.id.match(typeAndModifierIdPattern)) {
101
101
  collector.error(( localize(
102
- 14279,
102
+ 14282,
103
103
  "'configuration.{0}.id' must follow the pattern letterOrDigit[-_letterOrDigit]*",
104
104
  extensionPoint
105
105
  )));
@@ -108,7 +108,7 @@ class TokenClassificationExtensionPoints {
108
108
  const superType = contribution.superType;
109
109
  if (superType && !superType.match(typeAndModifierIdPattern)) {
110
110
  collector.error(( localize(
111
- 14280,
111
+ 14283,
112
112
  "'configuration.{0}.superType' must follow the pattern letterOrDigit[-_letterOrDigit]*",
113
113
  extensionPoint
114
114
  )));
@@ -116,7 +116,7 @@ class TokenClassificationExtensionPoints {
116
116
  }
117
117
  if (typeof contribution.description !== 'string' || contribution.id.length === 0) {
118
118
  collector.error(( localize(
119
- 14281,
119
+ 14284,
120
120
  "'configuration.{0}.description' must be defined and can not be empty",
121
121
  extensionPoint
122
122
  )));
@@ -129,7 +129,7 @@ class TokenClassificationExtensionPoints {
129
129
  const extensionValue = extension.value;
130
130
  const collector = extension.collector;
131
131
  if (!extensionValue || !Array.isArray(extensionValue)) {
132
- collector.error(( localize(14282, "'configuration.semanticTokenType' must be an array")));
132
+ collector.error(( localize(14285, "'configuration.semanticTokenType' must be an array")));
133
133
  return;
134
134
  }
135
135
  for (const contribution of extensionValue) {
@@ -150,7 +150,7 @@ class TokenClassificationExtensionPoints {
150
150
  const extensionValue = extension.value;
151
151
  const collector = extension.collector;
152
152
  if (!extensionValue || !Array.isArray(extensionValue)) {
153
- collector.error(( localize(14283, "'configuration.semanticTokenModifier' must be an array")));
153
+ collector.error(( localize(14286, "'configuration.semanticTokenModifier' must be an array")));
154
154
  return;
155
155
  }
156
156
  for (const contribution of extensionValue) {
@@ -171,17 +171,17 @@ class TokenClassificationExtensionPoints {
171
171
  const extensionValue = extension.value;
172
172
  const collector = extension.collector;
173
173
  if (!extensionValue || !Array.isArray(extensionValue)) {
174
- collector.error(( localize(14284, "'configuration.semanticTokenScopes' must be an array")));
174
+ collector.error(( localize(14287, "'configuration.semanticTokenScopes' must be an array")));
175
175
  return;
176
176
  }
177
177
  for (const contribution of extensionValue) {
178
178
  if (contribution.language && typeof contribution.language !== 'string') {
179
- collector.error(( localize(14285, "'configuration.semanticTokenScopes.language' must be a string")));
179
+ collector.error(( localize(14288, "'configuration.semanticTokenScopes.language' must be a string")));
180
180
  continue;
181
181
  }
182
182
  if (!contribution.scopes || typeof contribution.scopes !== 'object') {
183
183
  collector.error(( localize(
184
- 14286,
184
+ 14289,
185
185
  "'configuration.semanticTokenScopes.scopes' must be defined as an object"
186
186
  )));
187
187
  continue;
@@ -190,7 +190,7 @@ class TokenClassificationExtensionPoints {
190
190
  const tmScopes = contribution.scopes[selectorString];
191
191
  if (!Array.isArray(tmScopes) || ( tmScopes.some(l => typeof l !== 'string'))) {
192
192
  collector.error(( localize(
193
- 14287,
193
+ 14290,
194
194
  "'configuration.semanticTokenScopes.scopes' values must be an array of strings"
195
195
  )));
196
196
  continue;
@@ -201,7 +201,7 @@ class TokenClassificationExtensionPoints {
201
201
  }
202
202
  catch (e) {
203
203
  collector.error(( localize(
204
- 14288,
204
+ 14291,
205
205
  "configuration.semanticTokenScopes.scopes': Problems parsing selector {0}.",
206
206
  selectorString
207
207
  )));