@codingame/monaco-vscode-textmate-service-override
Advanced tools
Comparing version 1.83.5 to 1.83.6
{ | ||
"name": "@codingame/monaco-vscode-textmate-service-override", | ||
"version": "1.83.5", | ||
"version": "1.83.6", | ||
"keywords": [], | ||
@@ -21,3 +21,3 @@ "author": { | ||
"dependencies": { | ||
"vscode": "npm:@codingame/monaco-vscode-api@1.83.5", | ||
"vscode": "npm:@codingame/monaco-vscode-api@1.83.6", | ||
"monaco-editor": "0.44.0", | ||
@@ -24,0 +24,0 @@ "vscode-oniguruma": "1.7.0", |
@@ -165,3 +165,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js'; | ||
if (this._debugMode) { | ||
this._notificationService.error(nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'alreadyDebugging', "Already Logging.")); | ||
this._notificationService.error(( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'alreadyDebugging', | ||
"Already Logging." | ||
))); | ||
return; | ||
@@ -174,6 +178,14 @@ } | ||
location: 15 , | ||
buttons: [nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'stop', "Stop")] | ||
buttons: [( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'stop', | ||
"Stop" | ||
))] | ||
}, (progress) => { | ||
progress.report({ | ||
message: nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'progress1', "Preparing to log TM Grammar parsing. Press Stop when finished.") | ||
message: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'progress1', | ||
"Preparing to log TM Grammar parsing. Press Stop when finished." | ||
)) | ||
}); | ||
@@ -183,3 +195,7 @@ return this._getVSCodeOniguruma().then((vscodeOniguruma) => { | ||
progress.report({ | ||
message: nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'progress2', "Now logging TM Grammar parsing. Press Stop when finished.") | ||
message: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'progress2', | ||
"Now logging TM Grammar parsing. Press Stop when finished." | ||
)) | ||
}); | ||
@@ -388,23 +404,59 @@ return ( new Promise((resolve, reject) => { })); | ||
if (syntax.language && ((typeof syntax.language !== 'string') || !_languageService.isRegisteredLanguageId(syntax.language))) { | ||
collector.error(nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'invalid.language', "Unknown language in `contributes.{0}.language`. Provided value: {1}", grammarsExtPoint.name, String(syntax.language))); | ||
collector.error(( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'invalid.language', | ||
"Unknown language in `contributes.{0}.language`. Provided value: {1}", | ||
grammarsExtPoint.name, | ||
String(syntax.language) | ||
))); | ||
return false; | ||
} | ||
if (!syntax.scopeName || (typeof syntax.scopeName !== 'string')) { | ||
collector.error(nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'invalid.scopeName', "Expected string in `contributes.{0}.scopeName`. Provided value: {1}", grammarsExtPoint.name, String(syntax.scopeName))); | ||
collector.error(( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'invalid.scopeName', | ||
"Expected string in `contributes.{0}.scopeName`. Provided value: {1}", | ||
grammarsExtPoint.name, | ||
String(syntax.scopeName) | ||
))); | ||
return false; | ||
} | ||
if (!syntax.path || (typeof syntax.path !== 'string')) { | ||
collector.error(nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'invalid.path.0', "Expected string in `contributes.{0}.path`. Provided value: {1}", grammarsExtPoint.name, String(syntax.path))); | ||
collector.error(( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'invalid.path.0', | ||
"Expected string in `contributes.{0}.path`. Provided value: {1}", | ||
grammarsExtPoint.name, | ||
String(syntax.path) | ||
))); | ||
return false; | ||
} | ||
if (syntax.injectTo && (!Array.isArray(syntax.injectTo) || ( syntax.injectTo.some(scope => typeof scope !== 'string')))) { | ||
collector.error(nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'invalid.injectTo', "Invalid value in `contributes.{0}.injectTo`. Must be an array of language scope names. Provided value: {1}", grammarsExtPoint.name, JSON.stringify(syntax.injectTo))); | ||
collector.error(( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'invalid.injectTo', | ||
"Invalid value in `contributes.{0}.injectTo`. Must be an array of language scope names. Provided value: {1}", | ||
grammarsExtPoint.name, | ||
JSON.stringify(syntax.injectTo) | ||
))); | ||
return false; | ||
} | ||
if (syntax.embeddedLanguages && !types.isObject(syntax.embeddedLanguages)) { | ||
collector.error(nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'invalid.embeddedLanguages', "Invalid value in `contributes.{0}.embeddedLanguages`. Must be an object map from scope name to language. Provided value: {1}", grammarsExtPoint.name, JSON.stringify(syntax.embeddedLanguages))); | ||
collector.error(( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'invalid.embeddedLanguages', | ||
"Invalid value in `contributes.{0}.embeddedLanguages`. Must be an object map from scope name to language. Provided value: {1}", | ||
grammarsExtPoint.name, | ||
JSON.stringify(syntax.embeddedLanguages) | ||
))); | ||
return false; | ||
} | ||
if (syntax.tokenTypes && !types.isObject(syntax.tokenTypes)) { | ||
collector.error(nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'invalid.tokenTypes', "Invalid value in `contributes.{0}.tokenTypes`. Must be an object map from scope name to token type. Provided value: {1}", grammarsExtPoint.name, JSON.stringify(syntax.tokenTypes))); | ||
collector.error(( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'invalid.tokenTypes', | ||
"Invalid value in `contributes.{0}.tokenTypes`. Must be an object map from scope name to token type. Provided value: {1}", | ||
grammarsExtPoint.name, | ||
JSON.stringify(syntax.tokenTypes) | ||
))); | ||
return false; | ||
@@ -414,3 +466,10 @@ } | ||
if (!resources.isEqualOrParent(grammarLocation, extensionLocation)) { | ||
collector.warn(nls.localizeWithPath('vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', 'invalid.path.1', "Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.", grammarsExtPoint.name, grammarLocation.path, extensionLocation.path)); | ||
collector.warn(( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl', | ||
'invalid.path.1', | ||
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.", | ||
grammarsExtPoint.name, | ||
grammarLocation.path, | ||
extensionLocation.path | ||
))); | ||
} | ||
@@ -417,0 +476,0 @@ return true; |
@@ -9,3 +9,7 @@ import * as nls from 'monaco-editor/esm/vs/nls.js'; | ||
jsonSchema: { | ||
description: nls.localizeWithPath('vs/workbench/services/textMate/common/TMGrammars', 'vscode.extension.contributes.grammars', 'Contributes textmate tokenizers.'), | ||
description: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/common/TMGrammars', | ||
'vscode.extension.contributes.grammars', | ||
'Contributes textmate tokenizers.' | ||
)), | ||
type: 'array', | ||
@@ -18,19 +22,39 @@ defaultSnippets: [{ body: [{ language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' }] }], | ||
language: { | ||
description: nls.localizeWithPath('vs/workbench/services/textMate/common/TMGrammars', 'vscode.extension.contributes.grammars.language', 'Language identifier for which this syntax is contributed to.'), | ||
description: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/common/TMGrammars', | ||
'vscode.extension.contributes.grammars.language', | ||
'Language identifier for which this syntax is contributed to.' | ||
)), | ||
type: 'string' | ||
}, | ||
scopeName: { | ||
description: nls.localizeWithPath('vs/workbench/services/textMate/common/TMGrammars', 'vscode.extension.contributes.grammars.scopeName', 'Textmate scope name used by the tmLanguage file.'), | ||
description: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/common/TMGrammars', | ||
'vscode.extension.contributes.grammars.scopeName', | ||
'Textmate scope name used by the tmLanguage file.' | ||
)), | ||
type: 'string' | ||
}, | ||
path: { | ||
description: nls.localizeWithPath('vs/workbench/services/textMate/common/TMGrammars', 'vscode.extension.contributes.grammars.path', 'Path of the tmLanguage file. The path is relative to the extension folder and typically starts with \'./syntaxes/\'.'), | ||
description: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/common/TMGrammars', | ||
'vscode.extension.contributes.grammars.path', | ||
'Path of the tmLanguage file. The path is relative to the extension folder and typically starts with \'./syntaxes/\'.' | ||
)), | ||
type: 'string' | ||
}, | ||
embeddedLanguages: { | ||
description: nls.localizeWithPath('vs/workbench/services/textMate/common/TMGrammars', 'vscode.extension.contributes.grammars.embeddedLanguages', 'A map of scope name to language id if this grammar contains embedded languages.'), | ||
description: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/common/TMGrammars', | ||
'vscode.extension.contributes.grammars.embeddedLanguages', | ||
'A map of scope name to language id if this grammar contains embedded languages.' | ||
)), | ||
type: 'object' | ||
}, | ||
tokenTypes: { | ||
description: nls.localizeWithPath('vs/workbench/services/textMate/common/TMGrammars', 'vscode.extension.contributes.grammars.tokenTypes', 'A map of scope name to token types.'), | ||
description: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/common/TMGrammars', | ||
'vscode.extension.contributes.grammars.tokenTypes', | ||
'A map of scope name to token types.' | ||
)), | ||
type: 'object', | ||
@@ -42,3 +66,7 @@ additionalProperties: { | ||
injectTo: { | ||
description: nls.localizeWithPath('vs/workbench/services/textMate/common/TMGrammars', 'vscode.extension.contributes.grammars.injectTo', 'List of language scope names to which this grammar is injected to.'), | ||
description: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/common/TMGrammars', | ||
'vscode.extension.contributes.grammars.injectTo', | ||
'List of language scope names to which this grammar is injected to.' | ||
)), | ||
type: 'array', | ||
@@ -50,3 +78,7 @@ items: { | ||
balancedBracketScopes: { | ||
description: nls.localizeWithPath('vs/workbench/services/textMate/common/TMGrammars', 'vscode.extension.contributes.grammars.balancedBracketScopes', 'Defines which scope names contain balanced brackets.'), | ||
description: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/common/TMGrammars', | ||
'vscode.extension.contributes.grammars.balancedBracketScopes', | ||
'Defines which scope names contain balanced brackets.' | ||
)), | ||
type: 'array', | ||
@@ -59,3 +91,7 @@ items: { | ||
unbalancedBracketScopes: { | ||
description: nls.localizeWithPath('vs/workbench/services/textMate/common/TMGrammars', 'vscode.extension.contributes.grammars.unbalancedBracketScopes', 'Defines which scope names do not contain balanced brackets.'), | ||
description: ( nls.localizeWithPath( | ||
'vs/workbench/services/textMate/common/TMGrammars', | ||
'vscode.extension.contributes.grammars.unbalancedBracketScopes', | ||
'Defines which scope names do not contain balanced brackets.' | ||
)), | ||
type: 'array', | ||
@@ -62,0 +98,0 @@ items: { |
79008
1612
+ Added@codingame/monaco-vscode-api@1.83.6(transitive)
- Removed@codingame/monaco-vscode-api@1.83.5(transitive)