vscode-json-languageservice 5.7.2 → 6.0.0-next.2

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/lib/esm/jsonContributions.d.ts +1 -1
  3. package/lib/esm/jsonLanguageService.d.ts +2 -2
  4. package/lib/esm/jsonLanguageService.js +13 -13
  5. package/lib/esm/jsonLanguageTypes.d.ts +10 -2
  6. package/lib/esm/jsonSchema.d.ts +71 -2
  7. package/lib/esm/parser/jsonParser.js +224 -93
  8. package/lib/esm/services/configuration.js +2 -2
  9. package/lib/esm/services/jsonCompletion.js +5 -5
  10. package/lib/esm/services/jsonDocumentSymbols.js +4 -4
  11. package/lib/esm/services/jsonFolding.js +1 -1
  12. package/lib/esm/services/jsonHover.js +2 -2
  13. package/lib/esm/services/jsonLinks.js +94 -3
  14. package/lib/esm/services/jsonSchemaService.js +639 -100
  15. package/lib/esm/services/jsonSelectionRanges.js +1 -1
  16. package/lib/esm/services/jsonValidation.js +4 -4
  17. package/lib/esm/services/schemas/draft-2019-09-flat.d.ts +1 -1
  18. package/lib/esm/services/schemas/draft-2020-12-flat.d.ts +1 -1
  19. package/lib/esm/services/vocabularies.js +139 -0
  20. package/lib/esm/utils/format.js +1 -1
  21. package/lib/esm/utils/sort.js +3 -3
  22. package/package.json +23 -20
  23. package/lib/umd/jsonContributions.d.ts +0 -21
  24. package/lib/umd/jsonContributions.js +0 -12
  25. package/lib/umd/jsonLanguageService.d.ts +0 -30
  26. package/lib/umd/jsonLanguageService.js +0 -79
  27. package/lib/umd/jsonLanguageTypes.d.ts +0 -305
  28. package/lib/umd/jsonLanguageTypes.js +0 -109
  29. package/lib/umd/jsonSchema.d.ts +0 -92
  30. package/lib/umd/jsonSchema.js +0 -12
  31. package/lib/umd/parser/jsonParser.js +0 -1365
  32. package/lib/umd/services/configuration.js +0 -536
  33. package/lib/umd/services/jsonCompletion.js +0 -982
  34. package/lib/umd/services/jsonDocumentSymbols.js +0 -285
  35. package/lib/umd/services/jsonFolding.js +0 -133
  36. package/lib/umd/services/jsonHover.js +0 -125
  37. package/lib/umd/services/jsonLinks.js +0 -85
  38. package/lib/umd/services/jsonSchemaService.js +0 -631
  39. package/lib/umd/services/jsonSelectionRanges.js +0 -74
  40. package/lib/umd/services/jsonValidation.js +0 -165
  41. package/lib/umd/services/schemas/draft-2019-09-flat.d.ts +0 -278
  42. package/lib/umd/services/schemas/draft-2019-09-flat.js +0 -314
  43. package/lib/umd/services/schemas/draft-2020-12-flat.d.ts +0 -276
  44. package/lib/umd/services/schemas/draft-2020-12-flat.js +0 -307
  45. package/lib/umd/utils/colors.js +0 -83
  46. package/lib/umd/utils/format.js +0 -33
  47. package/lib/umd/utils/glob.js +0 -137
  48. package/lib/umd/utils/json.js +0 -55
  49. package/lib/umd/utils/objects.js +0 -86
  50. package/lib/umd/utils/propertyTree.js +0 -90
  51. package/lib/umd/utils/sort.js +0 -384
  52. package/lib/umd/utils/strings.js +0 -97
@@ -1,314 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *--------------------------------------------------------------------------------------------*/
5
- (function (factory) {
6
- if (typeof module === "object" && typeof module.exports === "object") {
7
- var v = factory(require, exports);
8
- if (v !== undefined) module.exports = v;
9
- }
10
- else if (typeof define === "function" && define.amd) {
11
- define(["require", "exports"], factory);
12
- }
13
- })(function (require, exports) {
14
- "use strict";
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- // This file is generated - do not edit directly!
17
- // Derived from https://json-schema.org/draft/2019-09
18
- exports.default = {
19
- $id: 'https://json-schema.org/draft/2019-09/schema',
20
- $schema: 'https://json-schema.org/draft/2019-09/schema',
21
- title: '(Flattened static) Core and Validation specifications meta-schema',
22
- type: [
23
- 'object',
24
- 'boolean',
25
- ],
26
- properties: {
27
- definitions: {
28
- $comment: 'While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.',
29
- type: 'object',
30
- additionalProperties: {
31
- $ref: '#',
32
- },
33
- default: {},
34
- },
35
- dependencies: {
36
- $comment: '"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',
37
- type: 'object',
38
- additionalProperties: {
39
- anyOf: [
40
- {
41
- $ref: '#',
42
- },
43
- {
44
- $ref: '#/$defs/stringArray',
45
- },
46
- ],
47
- },
48
- },
49
- $id: {
50
- type: 'string',
51
- format: 'uri-reference',
52
- $comment: 'Non-empty fragments not allowed.',
53
- pattern: '^[^#]*#?$',
54
- },
55
- $schema: {
56
- type: 'string',
57
- format: 'uri',
58
- },
59
- $anchor: {
60
- type: 'string',
61
- pattern: '^[A-Za-z][-A-Za-z0-9.:_]*$',
62
- },
63
- $ref: {
64
- type: 'string',
65
- format: 'uri-reference',
66
- },
67
- $recursiveAnchor: {
68
- type: 'boolean',
69
- default: false,
70
- },
71
- $vocabulary: {
72
- type: 'object',
73
- propertyNames: {
74
- type: 'string',
75
- format: 'uri',
76
- },
77
- additionalProperties: {
78
- type: 'boolean',
79
- },
80
- },
81
- $comment: {
82
- type: 'string',
83
- },
84
- $defs: {
85
- type: 'object',
86
- additionalProperties: {
87
- $ref: '#',
88
- },
89
- default: {},
90
- },
91
- additionalItems: {
92
- $ref: '#',
93
- },
94
- unevaluatedItems: {
95
- $ref: '#',
96
- },
97
- items: {
98
- anyOf: [
99
- {
100
- $ref: '#',
101
- },
102
- {
103
- $ref: '#/$defs/schemaArray',
104
- },
105
- ],
106
- },
107
- contains: {
108
- $ref: '#',
109
- },
110
- additionalProperties: {
111
- $ref: '#',
112
- },
113
- unevaluatedProperties: {
114
- $ref: '#',
115
- },
116
- properties: {
117
- type: 'object',
118
- additionalProperties: {
119
- $ref: '#',
120
- },
121
- default: {},
122
- },
123
- patternProperties: {
124
- type: 'object',
125
- additionalProperties: {
126
- $ref: '#',
127
- },
128
- propertyNames: {
129
- format: 'regex',
130
- },
131
- default: {},
132
- },
133
- dependentSchemas: {
134
- type: 'object',
135
- additionalProperties: {
136
- $ref: '#',
137
- },
138
- },
139
- propertyNames: {
140
- $ref: '#',
141
- },
142
- if: {
143
- $ref: '#',
144
- },
145
- then: {
146
- $ref: '#',
147
- },
148
- else: {
149
- $ref: '#',
150
- },
151
- allOf: {
152
- $ref: '#/$defs/schemaArray',
153
- },
154
- anyOf: {
155
- $ref: '#/$defs/schemaArray',
156
- },
157
- oneOf: {
158
- $ref: '#/$defs/schemaArray',
159
- },
160
- not: {
161
- $ref: '#',
162
- },
163
- multipleOf: {
164
- type: 'number',
165
- exclusiveMinimum: 0,
166
- },
167
- maximum: {
168
- type: 'number',
169
- },
170
- exclusiveMaximum: {
171
- type: 'number',
172
- },
173
- minimum: {
174
- type: 'number',
175
- },
176
- exclusiveMinimum: {
177
- type: 'number',
178
- },
179
- maxLength: {
180
- $ref: '#/$defs/nonNegativeInteger',
181
- },
182
- minLength: {
183
- $ref: '#/$defs/nonNegativeIntegerDefault0',
184
- },
185
- pattern: {
186
- type: 'string',
187
- format: 'regex',
188
- },
189
- maxItems: {
190
- $ref: '#/$defs/nonNegativeInteger',
191
- },
192
- minItems: {
193
- $ref: '#/$defs/nonNegativeIntegerDefault0',
194
- },
195
- uniqueItems: {
196
- type: 'boolean',
197
- default: false,
198
- },
199
- maxContains: {
200
- $ref: '#/$defs/nonNegativeInteger',
201
- },
202
- minContains: {
203
- $ref: '#/$defs/nonNegativeInteger',
204
- default: 1,
205
- },
206
- maxProperties: {
207
- $ref: '#/$defs/nonNegativeInteger',
208
- },
209
- minProperties: {
210
- $ref: '#/$defs/nonNegativeIntegerDefault0',
211
- },
212
- required: {
213
- $ref: '#/$defs/stringArray',
214
- },
215
- dependentRequired: {
216
- type: 'object',
217
- additionalProperties: {
218
- $ref: '#/$defs/stringArray',
219
- },
220
- },
221
- const: true,
222
- enum: {
223
- type: 'array',
224
- items: true,
225
- },
226
- type: {
227
- anyOf: [
228
- {
229
- $ref: '#/$defs/simpleTypes',
230
- },
231
- {
232
- type: 'array',
233
- items: {
234
- $ref: '#/$defs/simpleTypes',
235
- },
236
- minItems: 1,
237
- uniqueItems: true,
238
- },
239
- ],
240
- },
241
- title: {
242
- type: 'string',
243
- },
244
- description: {
245
- type: 'string',
246
- },
247
- default: true,
248
- deprecated: {
249
- type: 'boolean',
250
- default: false,
251
- },
252
- readOnly: {
253
- type: 'boolean',
254
- default: false,
255
- },
256
- writeOnly: {
257
- type: 'boolean',
258
- default: false,
259
- },
260
- examples: {
261
- type: 'array',
262
- items: true,
263
- },
264
- format: {
265
- type: 'string',
266
- },
267
- contentMediaType: {
268
- type: 'string',
269
- },
270
- contentEncoding: {
271
- type: 'string',
272
- },
273
- contentSchema: {
274
- $ref: '#',
275
- },
276
- },
277
- $defs: {
278
- schemaArray: {
279
- type: 'array',
280
- minItems: 1,
281
- items: {
282
- $ref: '#',
283
- },
284
- },
285
- nonNegativeInteger: {
286
- type: 'integer',
287
- minimum: 0,
288
- },
289
- nonNegativeIntegerDefault0: {
290
- $ref: '#/$defs/nonNegativeInteger',
291
- default: 0,
292
- },
293
- simpleTypes: {
294
- enum: [
295
- 'array',
296
- 'boolean',
297
- 'integer',
298
- 'null',
299
- 'number',
300
- 'object',
301
- 'string',
302
- ],
303
- },
304
- stringArray: {
305
- type: 'array',
306
- items: {
307
- type: 'string',
308
- },
309
- uniqueItems: true,
310
- default: [],
311
- },
312
- },
313
- };
314
- });
@@ -1,276 +0,0 @@
1
- declare const _default: {
2
- $id: string;
3
- $schema: string;
4
- title: string;
5
- type: string[];
6
- properties: {
7
- definitions: {
8
- $comment: string;
9
- type: string;
10
- additionalProperties: {
11
- $ref: string;
12
- };
13
- default: {};
14
- };
15
- dependencies: {
16
- $comment: string;
17
- type: string;
18
- additionalProperties: {
19
- anyOf: {
20
- $ref: string;
21
- }[];
22
- };
23
- };
24
- $id: {
25
- type: string;
26
- format: string;
27
- $comment: string;
28
- pattern: string;
29
- };
30
- $schema: {
31
- type: string;
32
- format: string;
33
- };
34
- $anchor: {
35
- type: string;
36
- pattern: string;
37
- };
38
- $ref: {
39
- type: string;
40
- format: string;
41
- };
42
- $dynamicRef: {
43
- type: string;
44
- format: string;
45
- };
46
- $vocabulary: {
47
- type: string;
48
- propertyNames: {
49
- type: string;
50
- format: string;
51
- };
52
- additionalProperties: {
53
- type: string;
54
- };
55
- };
56
- $comment: {
57
- type: string;
58
- };
59
- $defs: {
60
- type: string;
61
- additionalProperties: {
62
- $ref: string;
63
- };
64
- default: {};
65
- };
66
- prefixItems: {
67
- $ref: string;
68
- };
69
- items: {
70
- $ref: string;
71
- };
72
- contains: {
73
- $ref: string;
74
- };
75
- additionalProperties: {
76
- $ref: string;
77
- };
78
- properties: {
79
- type: string;
80
- additionalProperties: {
81
- $ref: string;
82
- };
83
- default: {};
84
- };
85
- patternProperties: {
86
- type: string;
87
- additionalProperties: {
88
- $ref: string;
89
- };
90
- propertyNames: {
91
- format: string;
92
- };
93
- default: {};
94
- };
95
- dependentSchemas: {
96
- type: string;
97
- additionalProperties: {
98
- $ref: string;
99
- };
100
- };
101
- propertyNames: {
102
- $ref: string;
103
- };
104
- if: {
105
- $ref: string;
106
- };
107
- then: {
108
- $ref: string;
109
- };
110
- else: {
111
- $ref: string;
112
- };
113
- allOf: {
114
- $ref: string;
115
- };
116
- anyOf: {
117
- $ref: string;
118
- };
119
- oneOf: {
120
- $ref: string;
121
- };
122
- not: {
123
- $ref: string;
124
- };
125
- unevaluatedItems: {
126
- $ref: string;
127
- };
128
- unevaluatedProperties: {
129
- $ref: string;
130
- };
131
- multipleOf: {
132
- type: string;
133
- exclusiveMinimum: number;
134
- };
135
- maximum: {
136
- type: string;
137
- };
138
- exclusiveMaximum: {
139
- type: string;
140
- };
141
- minimum: {
142
- type: string;
143
- };
144
- exclusiveMinimum: {
145
- type: string;
146
- };
147
- maxLength: {
148
- $ref: string;
149
- };
150
- minLength: {
151
- $ref: string;
152
- };
153
- pattern: {
154
- type: string;
155
- format: string;
156
- };
157
- maxItems: {
158
- $ref: string;
159
- };
160
- minItems: {
161
- $ref: string;
162
- };
163
- uniqueItems: {
164
- type: string;
165
- default: boolean;
166
- };
167
- maxContains: {
168
- $ref: string;
169
- };
170
- minContains: {
171
- $ref: string;
172
- default: number;
173
- };
174
- maxProperties: {
175
- $ref: string;
176
- };
177
- minProperties: {
178
- $ref: string;
179
- };
180
- required: {
181
- $ref: string;
182
- };
183
- dependentRequired: {
184
- type: string;
185
- additionalProperties: {
186
- $ref: string;
187
- };
188
- };
189
- const: boolean;
190
- enum: {
191
- type: string;
192
- items: boolean;
193
- };
194
- type: {
195
- anyOf: ({
196
- $ref: string;
197
- type?: undefined;
198
- items?: undefined;
199
- minItems?: undefined;
200
- uniqueItems?: undefined;
201
- } | {
202
- type: string;
203
- items: {
204
- $ref: string;
205
- };
206
- minItems: number;
207
- uniqueItems: boolean;
208
- $ref?: undefined;
209
- })[];
210
- };
211
- title: {
212
- type: string;
213
- };
214
- description: {
215
- type: string;
216
- };
217
- default: boolean;
218
- deprecated: {
219
- type: string;
220
- default: boolean;
221
- };
222
- readOnly: {
223
- type: string;
224
- default: boolean;
225
- };
226
- writeOnly: {
227
- type: string;
228
- default: boolean;
229
- };
230
- examples: {
231
- type: string;
232
- items: boolean;
233
- };
234
- format: {
235
- type: string;
236
- };
237
- contentMediaType: {
238
- type: string;
239
- };
240
- contentEncoding: {
241
- type: string;
242
- };
243
- contentSchema: {
244
- $ref: string;
245
- };
246
- };
247
- $defs: {
248
- schemaArray: {
249
- type: string;
250
- minItems: number;
251
- items: {
252
- $ref: string;
253
- };
254
- };
255
- nonNegativeInteger: {
256
- type: string;
257
- minimum: number;
258
- };
259
- nonNegativeIntegerDefault0: {
260
- $ref: string;
261
- default: number;
262
- };
263
- simpleTypes: {
264
- enum: string[];
265
- };
266
- stringArray: {
267
- type: string;
268
- items: {
269
- type: string;
270
- };
271
- uniqueItems: boolean;
272
- default: never[];
273
- };
274
- };
275
- };
276
- export default _default;