vscode-json-languageservice 5.1.1 → 5.1.3
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/README.md +1 -1
- package/lib/esm/jsonContributions.d.ts +2 -3
- package/lib/esm/jsonLanguageService.d.ts +1 -1
- package/lib/esm/jsonLanguageTypes.d.ts +2 -2
- package/lib/esm/jsonSchema.d.ts +1 -1
- package/lib/esm/parser/jsonParser.js +70 -71
- package/lib/esm/services/configuration.js +47 -51
- package/lib/esm/services/jsonCompletion.js +9 -13
- package/lib/esm/services/jsonSchemaService.js +11 -12
- package/lib/esm/services/jsonValidation.js +2 -3
- package/lib/umd/jsonContributions.d.ts +2 -3
- package/lib/umd/jsonLanguageService.d.ts +1 -1
- package/lib/umd/jsonLanguageTypes.d.ts +2 -2
- package/lib/umd/jsonSchema.d.ts +1 -1
- package/lib/umd/parser/jsonParser.js +71 -72
- package/lib/umd/services/configuration.js +48 -52
- package/lib/umd/services/jsonCompletion.js +10 -14
- package/lib/umd/services/jsonSchemaService.js +12 -13
- package/lib/umd/services/jsonValidation.js +3 -4
- package/package.json +11 -14
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
if (v !== undefined) module.exports = v;
|
|
9
9
|
}
|
|
10
10
|
else if (typeof define === "function" && define.amd) {
|
|
11
|
-
define(["require", "exports", "vscode
|
|
11
|
+
define(["require", "exports", "@vscode/l10n"], factory);
|
|
12
12
|
}
|
|
13
13
|
})(function (require, exports) {
|
|
14
14
|
"use strict";
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.schemaContributions = void 0;
|
|
17
|
-
const
|
|
18
|
-
const localize = nls.loadMessageBundle();
|
|
17
|
+
const l10n = require("@vscode/l10n");
|
|
19
18
|
exports.schemaContributions = {
|
|
20
19
|
schemaAssociations: [],
|
|
21
20
|
schemas: {
|
|
@@ -475,52 +474,52 @@
|
|
|
475
474
|
}
|
|
476
475
|
};
|
|
477
476
|
const descriptions = {
|
|
478
|
-
id:
|
|
479
|
-
$schema:
|
|
480
|
-
title:
|
|
481
|
-
description:
|
|
482
|
-
default:
|
|
483
|
-
multipleOf:
|
|
484
|
-
maximum:
|
|
485
|
-
exclusiveMaximum:
|
|
486
|
-
minimum:
|
|
487
|
-
exclusiveMinimum:
|
|
488
|
-
maxLength:
|
|
489
|
-
minLength:
|
|
490
|
-
pattern:
|
|
491
|
-
additionalItems:
|
|
492
|
-
items:
|
|
493
|
-
maxItems:
|
|
494
|
-
minItems:
|
|
495
|
-
uniqueItems:
|
|
496
|
-
maxProperties:
|
|
497
|
-
minProperties:
|
|
498
|
-
required:
|
|
499
|
-
additionalProperties:
|
|
500
|
-
definitions:
|
|
501
|
-
properties:
|
|
502
|
-
patternProperties:
|
|
503
|
-
dependencies:
|
|
504
|
-
enum:
|
|
505
|
-
type:
|
|
506
|
-
format:
|
|
507
|
-
allOf:
|
|
508
|
-
anyOf:
|
|
509
|
-
oneOf:
|
|
510
|
-
not:
|
|
511
|
-
$id:
|
|
512
|
-
$ref:
|
|
513
|
-
$comment:
|
|
514
|
-
readOnly:
|
|
515
|
-
examples:
|
|
516
|
-
contains:
|
|
517
|
-
propertyNames:
|
|
518
|
-
const:
|
|
519
|
-
contentMediaType:
|
|
520
|
-
contentEncoding:
|
|
521
|
-
if:
|
|
522
|
-
then:
|
|
523
|
-
else:
|
|
477
|
+
id: l10n.t("A unique identifier for the schema."),
|
|
478
|
+
$schema: l10n.t("The schema to verify this document against."),
|
|
479
|
+
title: l10n.t("A descriptive title of the element."),
|
|
480
|
+
description: l10n.t("A long description of the element. Used in hover menus and suggestions."),
|
|
481
|
+
default: l10n.t("A default value. Used by suggestions."),
|
|
482
|
+
multipleOf: l10n.t("A number that should cleanly divide the current value (i.e. have no remainder)."),
|
|
483
|
+
maximum: l10n.t("The maximum numerical value, inclusive by default."),
|
|
484
|
+
exclusiveMaximum: l10n.t("Makes the maximum property exclusive."),
|
|
485
|
+
minimum: l10n.t("The minimum numerical value, inclusive by default."),
|
|
486
|
+
exclusiveMinimum: l10n.t("Makes the minimum property exclusive."),
|
|
487
|
+
maxLength: l10n.t("The maximum length of a string."),
|
|
488
|
+
minLength: l10n.t("The minimum length of a string."),
|
|
489
|
+
pattern: l10n.t("A regular expression to match the string against. It is not implicitly anchored."),
|
|
490
|
+
additionalItems: l10n.t("For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),
|
|
491
|
+
items: l10n.t("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),
|
|
492
|
+
maxItems: l10n.t("The maximum number of items that can be inside an array. Inclusive."),
|
|
493
|
+
minItems: l10n.t("The minimum number of items that can be inside an array. Inclusive."),
|
|
494
|
+
uniqueItems: l10n.t("If all of the items in the array must be unique. Defaults to false."),
|
|
495
|
+
maxProperties: l10n.t("The maximum number of properties an object can have. Inclusive."),
|
|
496
|
+
minProperties: l10n.t("The minimum number of properties an object can have. Inclusive."),
|
|
497
|
+
required: l10n.t("An array of strings that lists the names of all properties required on this object."),
|
|
498
|
+
additionalProperties: l10n.t("Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),
|
|
499
|
+
definitions: l10n.t("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),
|
|
500
|
+
properties: l10n.t("A map of property names to schemas for each property."),
|
|
501
|
+
patternProperties: l10n.t("A map of regular expressions on property names to schemas for matching properties."),
|
|
502
|
+
dependencies: l10n.t("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),
|
|
503
|
+
enum: l10n.t("The set of literal values that are valid."),
|
|
504
|
+
type: l10n.t("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),
|
|
505
|
+
format: l10n.t("Describes the format expected for the value."),
|
|
506
|
+
allOf: l10n.t("An array of schemas, all of which must match."),
|
|
507
|
+
anyOf: l10n.t("An array of schemas, where at least one must match."),
|
|
508
|
+
oneOf: l10n.t("An array of schemas, exactly one of which must match."),
|
|
509
|
+
not: l10n.t("A schema which must not match."),
|
|
510
|
+
$id: l10n.t("A unique identifier for the schema."),
|
|
511
|
+
$ref: l10n.t("Reference a definition hosted on any location."),
|
|
512
|
+
$comment: l10n.t("Comments from schema authors to readers or maintainers of the schema."),
|
|
513
|
+
readOnly: l10n.t("Indicates that the value of the instance is managed exclusively by the owning authority."),
|
|
514
|
+
examples: l10n.t("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),
|
|
515
|
+
contains: l10n.t("An array instance is valid against \"contains\" if at least one of its elements is valid against the given schema."),
|
|
516
|
+
propertyNames: l10n.t("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),
|
|
517
|
+
const: l10n.t("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),
|
|
518
|
+
contentMediaType: l10n.t("Describes the media type of a string property."),
|
|
519
|
+
contentEncoding: l10n.t("Describes the content encoding of a string property."),
|
|
520
|
+
if: l10n.t("The validation outcome of the \"if\" subschema controls which of the \"then\" or \"else\" keywords are evaluated."),
|
|
521
|
+
then: l10n.t("The \"if\" subschema is used for validation when the \"if\" subschema succeeds."),
|
|
522
|
+
else: l10n.t("The \"else\" subschema is used for validation when the \"if\" subschema fails.")
|
|
524
523
|
};
|
|
525
524
|
for (const schemaName in exports.schemaContributions.schemas) {
|
|
526
525
|
const schema = exports.schemaContributions.schemas[schemaName];
|
|
@@ -533,9 +532,6 @@
|
|
|
533
532
|
if (description) {
|
|
534
533
|
propertyObject['description'] = description;
|
|
535
534
|
}
|
|
536
|
-
else {
|
|
537
|
-
console.log(`${property}: localize('schema.json.${property}', "")`);
|
|
538
|
-
}
|
|
539
535
|
}
|
|
540
536
|
}
|
|
541
537
|
});
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
if (v !== undefined) module.exports = v;
|
|
9
9
|
}
|
|
10
10
|
else if (typeof define === "function" && define.amd) {
|
|
11
|
-
define(["require", "exports", "../parser/jsonParser", "jsonc-parser", "../utils/json", "../utils/strings", "../utils/objects", "../jsonLanguageTypes", "vscode
|
|
11
|
+
define(["require", "exports", "../parser/jsonParser", "jsonc-parser", "../utils/json", "../utils/strings", "../utils/objects", "../jsonLanguageTypes", "@vscode/l10n"], factory);
|
|
12
12
|
}
|
|
13
13
|
})(function (require, exports) {
|
|
14
14
|
"use strict";
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
const strings_1 = require("../utils/strings");
|
|
21
21
|
const objects_1 = require("../utils/objects");
|
|
22
22
|
const jsonLanguageTypes_1 = require("../jsonLanguageTypes");
|
|
23
|
-
const
|
|
24
|
-
const localize = nls.loadMessageBundle();
|
|
23
|
+
const l10n = require("@vscode/l10n");
|
|
25
24
|
const valueCommitCharacters = [',', '}', ']'];
|
|
26
25
|
const propertyCommitCharacters = [':'];
|
|
27
26
|
class JSONCompletion {
|
|
@@ -74,16 +73,16 @@
|
|
|
74
73
|
overwriteRange = jsonLanguageTypes_1.Range.create(document.positionAt(overwriteStart), position);
|
|
75
74
|
}
|
|
76
75
|
const supportsCommitCharacters = false; //this.doesSupportsCommitCharacters(); disabled for now, waiting for new API: https://github.com/microsoft/vscode/issues/42544
|
|
77
|
-
const proposed =
|
|
76
|
+
const proposed = new Map();
|
|
78
77
|
const collector = {
|
|
79
78
|
add: (suggestion) => {
|
|
80
79
|
let label = suggestion.label;
|
|
81
|
-
const existing = proposed
|
|
80
|
+
const existing = proposed.get(label);
|
|
82
81
|
if (!existing) {
|
|
83
82
|
label = label.replace(/[\n]/g, '↵');
|
|
84
83
|
if (label.length > 60) {
|
|
85
84
|
const shortendedLabel = label.substr(0, 57).trim() + '...';
|
|
86
|
-
if (!proposed
|
|
85
|
+
if (!proposed.has(shortendedLabel)) {
|
|
87
86
|
label = shortendedLabel;
|
|
88
87
|
}
|
|
89
88
|
}
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
suggestion.commitCharacters = suggestion.kind === jsonLanguageTypes_1.CompletionItemKind.Property ? propertyCommitCharacters : valueCommitCharacters;
|
|
95
94
|
}
|
|
96
95
|
suggestion.label = label;
|
|
97
|
-
proposed
|
|
96
|
+
proposed.set(label, suggestion);
|
|
98
97
|
result.items.push(suggestion);
|
|
99
98
|
}
|
|
100
99
|
else {
|
|
@@ -112,9 +111,6 @@
|
|
|
112
111
|
error: (message) => {
|
|
113
112
|
console.error(message);
|
|
114
113
|
},
|
|
115
|
-
log: (message) => {
|
|
116
|
-
console.log(message);
|
|
117
|
-
},
|
|
118
114
|
getNumberOfProposals: () => {
|
|
119
115
|
return result.items.length;
|
|
120
116
|
}
|
|
@@ -147,7 +143,7 @@
|
|
|
147
143
|
const properties = node.properties;
|
|
148
144
|
properties.forEach(p => {
|
|
149
145
|
if (!currentProperty || currentProperty !== p) {
|
|
150
|
-
proposed
|
|
146
|
+
proposed.set(p.keyNode.value, jsonLanguageTypes_1.CompletionItem.create('__'));
|
|
151
147
|
}
|
|
152
148
|
});
|
|
153
149
|
let separatorAfter = '';
|
|
@@ -526,7 +522,7 @@
|
|
|
526
522
|
label: this.getLabelForValue(value),
|
|
527
523
|
insertText: this.getInsertTextForValue(value, separatorAfter),
|
|
528
524
|
insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet,
|
|
529
|
-
detail:
|
|
525
|
+
detail: l10n.t('Default value')
|
|
530
526
|
});
|
|
531
527
|
hasProposals = true;
|
|
532
528
|
}
|
|
@@ -643,7 +639,7 @@
|
|
|
643
639
|
label: '{}',
|
|
644
640
|
insertText: this.getInsertTextForGuessedValue({}, separatorAfter),
|
|
645
641
|
insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet,
|
|
646
|
-
detail:
|
|
642
|
+
detail: l10n.t('New object'),
|
|
647
643
|
documentation: ''
|
|
648
644
|
});
|
|
649
645
|
}
|
|
@@ -653,7 +649,7 @@
|
|
|
653
649
|
label: '[]',
|
|
654
650
|
insertText: this.getInsertTextForGuessedValue([], separatorAfter),
|
|
655
651
|
insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet,
|
|
656
|
-
detail:
|
|
652
|
+
detail: l10n.t('New array'),
|
|
657
653
|
documentation: ''
|
|
658
654
|
});
|
|
659
655
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
if (v !== undefined) module.exports = v;
|
|
9
9
|
}
|
|
10
10
|
else if (typeof define === "function" && define.amd) {
|
|
11
|
-
define(["require", "exports", "jsonc-parser", "vscode-uri", "../utils/strings", "../parser/jsonParser", "vscode
|
|
11
|
+
define(["require", "exports", "jsonc-parser", "vscode-uri", "../utils/strings", "../parser/jsonParser", "@vscode/l10n", "../utils/glob", "../utils/objects"], factory);
|
|
12
12
|
}
|
|
13
13
|
})(function (require, exports) {
|
|
14
14
|
"use strict";
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
const vscode_uri_1 = require("vscode-uri");
|
|
19
19
|
const Strings = require("../utils/strings");
|
|
20
20
|
const Parser = require("../parser/jsonParser");
|
|
21
|
-
const
|
|
21
|
+
const l10n = require("@vscode/l10n");
|
|
22
22
|
const glob_1 = require("../utils/glob");
|
|
23
23
|
const objects_1 = require("../utils/objects");
|
|
24
|
-
const localize = nls.loadMessageBundle();
|
|
25
24
|
const BANG = '!';
|
|
26
25
|
const PATH_SEP = '/';
|
|
27
26
|
class FilePatternAssociation {
|
|
@@ -264,24 +263,24 @@
|
|
|
264
263
|
}
|
|
265
264
|
loadSchema(url) {
|
|
266
265
|
if (!this.requestService) {
|
|
267
|
-
const errorMessage =
|
|
266
|
+
const errorMessage = l10n.t('Unable to load schema from \'{0}\'. No schema request service available', toDisplayString(url));
|
|
268
267
|
return this.promise.resolve(new UnresolvedSchema({}, [errorMessage]));
|
|
269
268
|
}
|
|
270
269
|
return this.requestService(url).then(content => {
|
|
271
270
|
if (!content) {
|
|
272
|
-
const errorMessage =
|
|
271
|
+
const errorMessage = l10n.t('Unable to load schema from \'{0}\': No content.', toDisplayString(url));
|
|
273
272
|
return new UnresolvedSchema({}, [errorMessage]);
|
|
274
273
|
}
|
|
275
274
|
const errors = [];
|
|
276
275
|
if (content.charCodeAt(0) === 65279) {
|
|
277
|
-
errors.push(
|
|
276
|
+
errors.push(l10n.t('Problem reading content from \'{0}\': UTF-8 with BOM detected, only UTF 8 is allowed.', toDisplayString(url)));
|
|
278
277
|
content = content.trimStart();
|
|
279
278
|
}
|
|
280
279
|
let schemaContent = {};
|
|
281
280
|
const jsonErrors = [];
|
|
282
281
|
schemaContent = Json.parse(content, jsonErrors);
|
|
283
282
|
if (jsonErrors.length) {
|
|
284
|
-
errors.push(
|
|
283
|
+
errors.push(l10n.t('Unable to parse content from \'{0}\': Parse error at offset {1}.', toDisplayString(url), jsonErrors[0].offset));
|
|
285
284
|
}
|
|
286
285
|
return new UnresolvedSchema(schemaContent, errors);
|
|
287
286
|
}, (error) => {
|
|
@@ -294,7 +293,7 @@
|
|
|
294
293
|
if (Strings.endsWith(errorMessage, '.')) {
|
|
295
294
|
errorMessage = errorMessage.substr(0, errorMessage.length - 1);
|
|
296
295
|
}
|
|
297
|
-
return new UnresolvedSchema({}, [
|
|
296
|
+
return new UnresolvedSchema({}, [l10n.t('Unable to load schema from \'{0}\': {1}.', toDisplayString(url), errorMessage)]);
|
|
298
297
|
});
|
|
299
298
|
}
|
|
300
299
|
resolveSchemaContent(schemaToResolve, handle) {
|
|
@@ -302,7 +301,7 @@
|
|
|
302
301
|
const schema = schemaToResolve.schema;
|
|
303
302
|
let schemaDraft = schema.$schema ? normalizeId(schema.$schema) : undefined;
|
|
304
303
|
if (schemaDraft === 'http://json-schema.org/draft-03/schema') {
|
|
305
|
-
return this.promise.resolve(new ResolvedSchema({}, [
|
|
304
|
+
return this.promise.resolve(new ResolvedSchema({}, [l10n.t("Draft-03 schemas are not supported.")], [], schemaDraft));
|
|
306
305
|
}
|
|
307
306
|
let usesUnsupportedFeatures = new Set();
|
|
308
307
|
const contextService = this.contextService;
|
|
@@ -349,7 +348,7 @@
|
|
|
349
348
|
merge(target, section);
|
|
350
349
|
}
|
|
351
350
|
else {
|
|
352
|
-
resolveErrors.push(
|
|
351
|
+
resolveErrors.push(l10n.t('$ref \'{0}\' in \'{1}\' can not be resolved.', refSegment || '', sourceHandle.uri));
|
|
353
352
|
}
|
|
354
353
|
};
|
|
355
354
|
const resolveExternalLink = (node, uri, refSegment, parentHandle) => {
|
|
@@ -362,7 +361,7 @@
|
|
|
362
361
|
parentHandle.dependencies.add(uri);
|
|
363
362
|
if (unresolvedSchema.errors.length) {
|
|
364
363
|
const loc = refSegment ? uri + '#' + refSegment : uri;
|
|
365
|
-
resolveErrors.push(
|
|
364
|
+
resolveErrors.push(l10n.t('Problems loading reference \'{0}\': {1}', loc, unresolvedSchema.errors[0]));
|
|
366
365
|
}
|
|
367
366
|
mergeRef(node, unresolvedSchema.schema, referencedHandle, refSegment);
|
|
368
367
|
return resolveRefs(node, unresolvedSchema.schema, referencedHandle);
|
|
@@ -406,7 +405,7 @@
|
|
|
406
405
|
const anchor = (0, objects_1.isString)(id) && id.charAt(0) === '#' ? id.substring(1) : next.$anchor;
|
|
407
406
|
if (anchor) {
|
|
408
407
|
if (result.has(anchor)) {
|
|
409
|
-
resolveErrors.push(
|
|
408
|
+
resolveErrors.push(l10n.t('Duplicate anchor declaration: \'{0}\'', anchor));
|
|
410
409
|
}
|
|
411
410
|
else {
|
|
412
411
|
result.set(anchor, next);
|
|
@@ -424,7 +423,7 @@
|
|
|
424
423
|
return resolveRefs(schema, schema, handle).then(_ => {
|
|
425
424
|
let resolveWarnings = [];
|
|
426
425
|
if (usesUnsupportedFeatures.size) {
|
|
427
|
-
resolveWarnings.push(
|
|
426
|
+
resolveWarnings.push(l10n.t('The schema uses meta-schema features ({0}) that are not yet supported by the validator.', Array.from(usesUnsupportedFeatures.keys()).join(', ')));
|
|
428
427
|
}
|
|
429
428
|
return new ResolvedSchema(schema, resolveErrors, resolveWarnings, schemaDraft);
|
|
430
429
|
});
|
|
@@ -8,16 +8,15 @@
|
|
|
8
8
|
if (v !== undefined) module.exports = v;
|
|
9
9
|
}
|
|
10
10
|
else if (typeof define === "function" && define.amd) {
|
|
11
|
-
define(["require", "exports", "../jsonLanguageTypes", "vscode
|
|
11
|
+
define(["require", "exports", "../jsonLanguageTypes", "@vscode/l10n", "../utils/objects"], factory);
|
|
12
12
|
}
|
|
13
13
|
})(function (require, exports) {
|
|
14
14
|
"use strict";
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.JSONValidation = void 0;
|
|
17
17
|
const jsonLanguageTypes_1 = require("../jsonLanguageTypes");
|
|
18
|
-
const
|
|
18
|
+
const l10n = require("@vscode/l10n");
|
|
19
19
|
const objects_1 = require("../utils/objects");
|
|
20
|
-
const localize = nls.loadMessageBundle();
|
|
21
20
|
class JSONValidation {
|
|
22
21
|
constructor(jsonSchemaService, promiseConstructor) {
|
|
23
22
|
this.jsonSchemaService = jsonSchemaService;
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
addProblem(p);
|
|
95
94
|
}
|
|
96
95
|
if (typeof commentSeverity === 'number') {
|
|
97
|
-
const message =
|
|
96
|
+
const message = l10n.t('Comments are not permitted in JSON.');
|
|
98
97
|
jsonDocument.comments.forEach(c => {
|
|
99
98
|
addProblem(jsonLanguageTypes_1.Diagnostic.create(c, message, commentSeverity, jsonLanguageTypes_1.ErrorCode.CommentNotPermitted));
|
|
100
99
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-json-languageservice",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "Language service for JSON",
|
|
5
5
|
"main": "./lib/umd/jsonLanguageService.js",
|
|
6
6
|
"typings": "./lib/umd/jsonLanguageService",
|
|
@@ -15,26 +15,25 @@
|
|
|
15
15
|
"url": "https://github.com/Microsoft/vscode-json-languageservice"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@types/mocha": "^
|
|
18
|
+
"@types/mocha": "^10.0.0",
|
|
19
19
|
"@types/node": "16.x",
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
21
|
-
"@typescript-eslint/parser": "^5.
|
|
22
|
-
"eslint": "^8.
|
|
23
|
-
"
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
|
21
|
+
"@typescript-eslint/parser": "^5.44.0",
|
|
22
|
+
"eslint": "^8.28.0",
|
|
23
|
+
"json-schema-test-suite": "https://github.com/json-schema-org/JSON-Schema-Test-Suite.git#69acf52990b004240839ae19b4bec8fb01d50876",
|
|
24
|
+
"mocha": "^10.1.0",
|
|
24
25
|
"rimraf": "^3.0.2",
|
|
25
|
-
"typescript": "^4.
|
|
26
|
-
"json-schema-test-suite": "https://github.com/json-schema-org/JSON-Schema-Test-Suite.git#69acf52990b004240839ae19b4bec8fb01d50876"
|
|
26
|
+
"typescript": "^4.9.3"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"jsonc-parser": "^3.2.0",
|
|
30
30
|
"vscode-languageserver-textdocument": "^1.0.7",
|
|
31
31
|
"vscode-languageserver-types": "^3.17.2",
|
|
32
|
-
"vscode-
|
|
33
|
-
"vscode
|
|
32
|
+
"vscode-uri": "^3.0.6",
|
|
33
|
+
"@vscode/l10n": "^0.0.10"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
|
-
"
|
|
37
|
-
"postpublish": "node ./build/post-publish.js",
|
|
36
|
+
"prepack": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs",
|
|
38
37
|
"compile": "tsc -p ./src",
|
|
39
38
|
"compile-esm": "tsc -p ./src/tsconfig.esm.json",
|
|
40
39
|
"clean": "rimraf lib",
|
|
@@ -46,8 +45,6 @@
|
|
|
46
45
|
"coverage": "npx nyc -r lcov npm run test",
|
|
47
46
|
"lint": "eslint src/**/*.ts",
|
|
48
47
|
"install-types-next": "npm install vscode-languageserver-types@next -f -S && npm install vscode-languageserver-textdocument@next -f -S",
|
|
49
|
-
"preversion": "npm test",
|
|
50
|
-
"postversion": "git push && git push --tags",
|
|
51
48
|
"sample": "npm run compile && node ./lib/umd/example/sample.js"
|
|
52
49
|
}
|
|
53
50
|
}
|