New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@codingame/monaco-vscode-textmate-service-override

Package Overview
Dependencies
Maintainers
6
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codingame/monaco-vscode-textmate-service-override - npm Package Compare versions

Comparing version 7.1.0 to 7.1.1

6

package.json
{
"name": "@codingame/monaco-vscode-textmate-service-override",
"version": "7.1.0",
"version": "7.1.1",
"keywords": [],

@@ -32,7 +32,7 @@ "author": {

"dependencies": {
"vscode": "npm:@codingame/monaco-vscode-api@7.1.0",
"vscode": "npm:@codingame/monaco-vscode-api@7.1.1",
"vscode-oniguruma": "1.7.0",
"vscode-textmate": "9.0.0",
"@codingame/monaco-vscode-files-service-override": "7.1.0"
"@codingame/monaco-vscode-files-service-override": "7.1.1"
}
}
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
import './inspectEditorTokens.css.js';
import { localizeWithPath } from 'vscode/vscode/vs/nls';
import { localize } from 'vscode/vscode/vs/nls';
import { $ as $$1, clearNode, reset, append, isHTMLElement } from 'vscode/vscode/vs/base/browser/dom';

@@ -26,3 +26,2 @@ import { CharCode } from 'vscode/vscode/vs/base/common/charCode';

var InspectEditorTokensController_1;
const _moduleId = "vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens";
const $ = $$1;

@@ -100,3 +99,3 @@ let InspectEditorTokensController = class InspectEditorTokensController extends Disposable {

id: 'editor.action.inspectTMScopes',
label: ( localizeWithPath(_moduleId, 0, "Developer: Inspect Editor Tokens and Scopes")),
label: ( localize(2805, "Developer: Inspect Editor Tokens and Scopes")),
alias: 'Developer: Inspect Editor Tokens and Scopes',

@@ -167,3 +166,3 @@ precondition: undefined

clearNode(this._domNode);
this._domNode.appendChild(document.createTextNode(( localizeWithPath(_moduleId, 1, "Loading..."))));
this._domNode.appendChild(document.createTextNode(( localize(2806, "Loading..."))));
Promise.all([grammar, semanticTokens]).then(([grammar, semanticTokens]) => {

@@ -170,0 +169,0 @@ if (this._isDisposed) {

@@ -19,3 +19,3 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';

import { generateTokensCSSForColorMap } from 'vscode/vscode/vs/editor/common/languages/supports/tokenization';
import { localizeWithPath } from 'vscode/vscode/vs/nls';
import { localize } from 'vscode/vscode/vs/nls';
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';

@@ -40,3 +40,2 @@ import { IExtensionResourceLoaderService } from 'vscode/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service';

var TextMateTokenizationFeature_1;
const _moduleId = "vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl";
let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disposable {

@@ -173,3 +172,3 @@ static { TextMateTokenizationFeature_1 = this; }

if (this._debugMode) {
this._notificationService.error(( localizeWithPath(_moduleId, 0, "Already Logging.")));
this._notificationService.error(( localize(2770, "Already Logging.")));
return;

@@ -182,10 +181,6 @@ }

location: ProgressLocation.Notification,
buttons: [( localizeWithPath(_moduleId, 1, "Stop"))]
buttons: [( localize(2771, "Stop"))]
}, (progress) => {
progress.report({
message: ( localizeWithPath(
_moduleId,
2,
"Preparing to log TM Grammar parsing. Press Stop when finished."
))
message: ( localize(2772, "Preparing to log TM Grammar parsing. Press Stop when finished."))
});

@@ -195,3 +190,3 @@ return this._getVSCodeOniguruma().then((vscodeOniguruma) => {

progress.report({
message: ( localizeWithPath(_moduleId, 3, "Now logging TM Grammar parsing. Press Stop when finished."))
message: ( localize(2773, "Now logging TM Grammar parsing. Press Stop when finished."))
});

@@ -404,5 +399,4 @@ return (

if (syntax.language && ((typeof syntax.language !== 'string') || !_languageService.isRegisteredLanguageId(syntax.language))) {
collector.error(( localizeWithPath(
_moduleId,
4,
collector.error(( localize(
2774,
"Unknown language in `contributes.{0}.language`. Provided value: {1}",

@@ -415,5 +409,4 @@ grammarsExtPoint.name,

if (!syntax.scopeName || (typeof syntax.scopeName !== 'string')) {
collector.error(( localizeWithPath(
_moduleId,
5,
collector.error(( localize(
2775,
"Expected string in `contributes.{0}.scopeName`. Provided value: {1}",

@@ -426,5 +419,4 @@ grammarsExtPoint.name,

if (!syntax.path || (typeof syntax.path !== 'string')) {
collector.error(( localizeWithPath(
_moduleId,
6,
collector.error(( localize(
2776,
"Expected string in `contributes.{0}.path`. Provided value: {1}",

@@ -437,5 +429,4 @@ grammarsExtPoint.name,

if (syntax.injectTo && (!Array.isArray(syntax.injectTo) || ( (syntax.injectTo.some(scope => typeof scope !== 'string'))))) {
collector.error(( localizeWithPath(
_moduleId,
7,
collector.error(( localize(
2777,
"Invalid value in `contributes.{0}.injectTo`. Must be an array of language scope names. Provided value: {1}",

@@ -448,5 +439,4 @@ grammarsExtPoint.name,

if (syntax.embeddedLanguages && !isObject(syntax.embeddedLanguages)) {
collector.error(( localizeWithPath(
_moduleId,
8,
collector.error(( localize(
2778,
"Invalid value in `contributes.{0}.embeddedLanguages`. Must be an object map from scope name to language. Provided value: {1}",

@@ -459,5 +449,4 @@ grammarsExtPoint.name,

if (syntax.tokenTypes && !isObject(syntax.tokenTypes)) {
collector.error(( localizeWithPath(
_moduleId,
9,
collector.error(( localize(
2779,
"Invalid value in `contributes.{0}.tokenTypes`. Must be an object map from scope name to token type. Provided value: {1}",

@@ -471,5 +460,4 @@ grammarsExtPoint.name,

if (!isEqualOrParent(grammarLocation, extensionLocation)) {
collector.warn(( localizeWithPath(
_moduleId,
10,
collector.warn(( localize(
2780,
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",

@@ -476,0 +464,0 @@ grammarsExtPoint.name,

import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
import { localizeWithPath } from 'vscode/vscode/vs/nls';
import { localize } from 'vscode/vscode/vs/nls';
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';

@@ -8,3 +8,2 @@ import { getTokenClassificationRegistry, typeAndModifierIdPattern } from 'vscode/vscode/vs/platform/theme/common/tokenClassificationRegistry';

const _moduleId = "vs/workbench/services/themes/common/tokenClassificationExtensionPoint";
const tokenClassificationRegistry = getTokenClassificationRegistry();

@@ -14,3 +13,3 @@ const tokenTypeExtPoint = ExtensionsRegistry.registerExtensionPoint({

jsonSchema: {
description: ( localizeWithPath(_moduleId, 0, 'Contributes semantic token types.')),
description: ( localize(2781, 'Contributes semantic token types.')),
type: 'array',

@@ -22,23 +21,15 @@ items: {

type: 'string',
description: ( localizeWithPath(_moduleId, 1, 'The identifier of the semantic token type')),
description: ( localize(2782, 'The identifier of the semantic token type')),
pattern: typeAndModifierIdPattern,
patternErrorMessage: ( localizeWithPath(
_moduleId,
2,
'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'
)),
patternErrorMessage: ( localize(2783, 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*')),
},
superType: {
type: 'string',
description: ( localizeWithPath(_moduleId, 3, 'The super type of the semantic token type')),
description: ( localize(2784, 'The super type of the semantic token type')),
pattern: typeAndModifierIdPattern,
patternErrorMessage: ( localizeWithPath(
_moduleId,
4,
'Super types should be in the form letterOrDigit[_-letterOrDigit]*'
)),
patternErrorMessage: ( localize(2785, 'Super types should be in the form letterOrDigit[_-letterOrDigit]*')),
},
description: {
type: 'string',
description: ( localizeWithPath(_moduleId, 5, 'The description of the semantic token type')),
description: ( localize(2786, 'The description of the semantic token type')),
}

@@ -52,3 +43,3 @@ }

jsonSchema: {
description: ( localizeWithPath(_moduleId, 6, 'Contributes semantic token modifiers.')),
description: ( localize(2787, 'Contributes semantic token modifiers.')),
type: 'array',

@@ -60,13 +51,9 @@ items: {

type: 'string',
description: ( localizeWithPath(_moduleId, 7, 'The identifier of the semantic token modifier')),
description: ( localize(2788, 'The identifier of the semantic token modifier')),
pattern: typeAndModifierIdPattern,
patternErrorMessage: ( localizeWithPath(
_moduleId,
8,
'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'
))
patternErrorMessage: ( localize(2789, 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'))
},
description: {
type: 'string',
description: ( localizeWithPath(_moduleId, 9, 'The description of the semantic token modifier'))
description: ( localize(2790, 'The description of the semantic token modifier'))
}

@@ -80,3 +67,3 @@ }

jsonSchema: {
description: ( localizeWithPath(_moduleId, 10, 'Contributes semantic token scope maps.')),
description: ( localize(2791, 'Contributes semantic token scope maps.')),
type: 'array',

@@ -87,9 +74,8 @@ items: {

language: {
description: ( localizeWithPath(_moduleId, 11, 'Lists the languge for which the defaults are.')),
description: ( localize(2792, 'Lists the languge for which the defaults are.')),
type: 'string'
},
scopes: {
description: ( localizeWithPath(
_moduleId,
12,
description: ( localize(
2793,
'Maps a semantic token (described by semantic token selector) to one or more textMate scopes used to represent that token.'

@@ -113,5 +99,4 @@ )),

if (typeof contribution.id !== 'string' || contribution.id.length === 0) {
collector.error(( localizeWithPath(
_moduleId,
13,
collector.error(( localize(
2794,
"'configuration.{0}.id' must be defined and can not be empty",

@@ -123,5 +108,4 @@ extensionPoint

if (!contribution.id.match(typeAndModifierIdPattern)) {
collector.error(( localizeWithPath(
_moduleId,
14,
collector.error(( localize(
2795,
"'configuration.{0}.id' must follow the pattern letterOrDigit[-_letterOrDigit]*",

@@ -134,5 +118,4 @@ extensionPoint

if (superType && !superType.match(typeAndModifierIdPattern)) {
collector.error(( localizeWithPath(
_moduleId,
15,
collector.error(( localize(
2796,
"'configuration.{0}.superType' must follow the pattern letterOrDigit[-_letterOrDigit]*",

@@ -144,5 +127,4 @@ extensionPoint

if (typeof contribution.description !== 'string' || contribution.id.length === 0) {
collector.error(( localizeWithPath(
_moduleId,
16,
collector.error(( localize(
2797,
"'configuration.{0}.description' must be defined and can not be empty",

@@ -160,3 +142,3 @@ extensionPoint

if (!extensionValue || !Array.isArray(extensionValue)) {
collector.error(( localizeWithPath(_moduleId, 17, "'configuration.semanticTokenType' must be an array")));
collector.error(( localize(2798, "'configuration.semanticTokenType' must be an array")));
return;

@@ -182,3 +164,3 @@ }

if (!extensionValue || !Array.isArray(extensionValue)) {
collector.error(( localizeWithPath(_moduleId, 18, "'configuration.semanticTokenModifier' must be an array")));
collector.error(( localize(2799, "'configuration.semanticTokenModifier' must be an array")));
return;

@@ -204,3 +186,3 @@ }

if (!extensionValue || !Array.isArray(extensionValue)) {
collector.error(( localizeWithPath(_moduleId, 19, "'configuration.semanticTokenScopes' must be an array")));
collector.error(( localize(2800, "'configuration.semanticTokenScopes' must be an array")));
return;

@@ -210,13 +192,8 @@ }

if (contribution.language && typeof contribution.language !== 'string') {
collector.error(( localizeWithPath(
_moduleId,
20,
"'configuration.semanticTokenScopes.language' must be a string"
)));
collector.error(( localize(2801, "'configuration.semanticTokenScopes.language' must be a string")));
continue;
}
if (!contribution.scopes || typeof contribution.scopes !== 'object') {
collector.error(( localizeWithPath(
_moduleId,
21,
collector.error(( localize(
2802,
"'configuration.semanticTokenScopes.scopes' must be defined as an object"

@@ -229,5 +206,4 @@ )));

if (!Array.isArray(tmScopes) || ( (tmScopes.some(l => typeof l !== 'string')))) {
collector.error(( localizeWithPath(
_moduleId,
22,
collector.error(( localize(
2803,
"'configuration.semanticTokenScopes.scopes' values must be an array of strings"

@@ -242,5 +218,4 @@ )));

catch (e) {
collector.error(( localizeWithPath(
_moduleId,
23,
collector.error(( localize(
2804,
"configuration.semanticTokenScopes.scopes': Problems parsing selector {0}.",

@@ -247,0 +222,0 @@ selectorString

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc