-
Notifications
You must be signed in to change notification settings - Fork 81
/
package.json
637 lines (637 loc) · 30.2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
{
"name": "vscode-xml",
"displayName": "XML",
"description": "XML Language Support by Red Hat",
"version": "0.21.0",
"author": "Red Hat",
"publisher": "redhat",
"icon": "icons/icon128.png",
"license": "EPL-2.0",
"bugs": "https://github.com/redhat-developer/vscode-xml/issues",
"preview": true,
"keywords": [
"xml",
"xsl",
"xsd",
"dtd"
],
"xmlServer": {
"version": "0.20.0"
},
"binaryServerDownloadUrl": {
"linux": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-linux.zip",
"osx-x86_64": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-osx-x86_64.zip",
"win32": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-win32.zip"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"restrictedConfigurations": [
"xml.extension.jars",
"xml.java.home",
"xml.server.vmargs",
"xml.validation.resolveExternalEntities",
"xml.downloadExternalResources.enabled"
]
}
},
"engines": {
"vscode": "^1.61.0"
},
"activationEvents": [
"onLanguage:xml",
"onLanguage:xsl",
"onLanguage:dtd",
"onCommand:xml.open.docs",
"onCommand:xml.open.docs.home"
],
"main": "./dist/extension",
"scripts": {
"preinstall": "npx npm-force-resolutions",
"vscode:prepublish": "webpack --mode production",
"compile": "webpack --mode none",
"watch": "webpack --mode development --watch",
"test-compile": "tsc -p ./",
"pretest": "npm run test-compile",
"test": "node ./out/test/runTest.js",
"tslint": "./node_modules/.bin/tslint -p .",
"build": "./node_modules/.bin/gulp build",
"build-server": "./node_modules/.bin/gulp build_server"
},
"repository": {
"type": "git",
"url": "https://github.com/redhat-developer/vscode-xml"
},
"categories": [
"Programming Languages",
"Linters",
"Formatters",
"Snippets"
],
"devDependencies": {
"@types/fs-extra": "^8.1.2",
"@types/glob": "^7.1.4",
"@types/node": "^10.14.16",
"@types/vscode": "^1.37.0",
"@types/yauzl": "^2.9.1",
"gulp": "^4.0.2",
"gulp-rename": "^1.4.0",
"gulp-tslint": "^8.1.3",
"minimist": ">=1.2.6",
"serialize-javascript": "^4.0.0",
"ts-loader": "^6.0.1",
"tslint": "^5.12.1",
"typescript": "^3.4.1",
"typescript-tslint-plugin": "^0.3.1",
"vscode-test": "^1.2.0",
"webpack": "^5.28.0",
"webpack-cli": "^4.6.0"
},
"dependencies": {
"@redhat-developer/vscode-redhat-telemetry": "0.4.2",
"expand-home-dir": "^0.0.3",
"find-java-home": "1.2.2",
"fs-extra": "^8.1.0",
"glob": "^7.1.4",
"path-exists": "^4.0.0",
"vscode-languageclient": "^7.0.0",
"yauzl": "^2.10.0"
},
"contributes": {
"languages": [
{
"id": "dtd",
"extensions": [
".dtd",
".ent",
".mod"
],
"aliases": [
"DTD",
"dtd"
]
}
],
"grammars": [
{
"language": "dtd",
"scopeName": "text.xml.dtd",
"path": "./syntaxes/dtd.tmLanguage.json"
}
],
"configuration": {
"type": "object",
"title": "XML",
"properties": {
"redhat.telemetry.enabled": {
"type": "boolean",
"default": null,
"markdownDescription": "Enable usage data and errors to be sent to Red Hat servers. Read our [privacy statement](https://developers.redhat.com/article/tool-data-collection).",
"scope": "window",
"tags": [
"telemetry"
]
},
"xml.java.home": {
"type": [
"string",
"null"
],
"default": null,
"markdownDescription": "Specifies the folder path to the JDK (8 or more recent) used to launch the XML Language Server if the Java server is being run.\nOn Windows, backslashes must be escaped, i.e.\n`\"xml.java.home\": \"C:\\\\Program Files\\\\Java\\\\jdk1.8.0_161\"`. For more information, please refer to [this document](command:xml.open.docs?%5B%7B%22page%22%3A%22Preferences%22%2C%22section%22%3A%22java-home%22%7D%5D).",
"scope": "window"
},
"xml.server.vmargs": {
"type": [
"string",
"null"
],
"default": "-Xmx64M",
"markdownDescription": "Specifies extra VM arguments used to launch the XML Language Server. Eg. use `-Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication` to increase the heap size to 1GB and enable String deduplication with the G1 Garbage collector. Please refer to [this document](command:xml.open.docs?%5B%7B%22page%22%3A%22Preferences%22%2C%22section%22%3A%22server-vm-arguments%22%7D%5D) for more information on the Java server arguments.",
"scope": "window"
},
"xml.server.workDir": {
"type": "string",
"default": "~/.lemminx",
"markdownDescription": "Set a custom folder path for cached XML Schemas. An absolute path is expected, although the `~` prefix (for the user home directory) is supported. Default is `~/.lemminx`. Please refer to the [cache documentation](command:xml.open.docs?%5B%7B%22page%22%3A%22Preferences%22%2C%22section%22%3A%22server-cache-path%22%7D%5D) for more information.",
"scope": "window"
},
"xml.server.preferBinary": {
"type": "boolean",
"default": false,
"description": "By default, vscode-xml tries to run the Java version of the XML Language Server. If no Java is detected, vscode-xml runs the binary XML language server. When this setting is enabled, the binary will also be used even if Java is installed. If there are additions to the XML Language Server provided by other extensions, Java will be used (if available) even if this setting is enabled.",
"scope": "window"
},
"xml.server.silenceExtensionWarning": {
"type": "boolean",
"default": false,
"description": "The XML Language server allows other VSCode extensions to extend its functionality. It requires Java-specific features in order to do this. If extensions to the XML language server are detected, but a binary XML language server is run, a warning will appear. This setting can be used to disable this warning.",
"scope": "window"
},
"xml.server.binary.path": {
"type": "string",
"description": "Specify the path of a custom binary version of the XML server to use. A binary will be downloaded if this is not set.",
"scope": "machine"
},
"xml.server.binary.args": {
"type": "string",
"markdownDescription": "Command line arguments to supply to the binary server when the binary server is being used. Takes into effect after relaunching VSCode. Please refer to [this website for the available options](https://www.graalvm.org/reference-manual/native-image/HostedvsRuntimeOptions/). For example, you can increase the maximum memory that the server can use to 1 GB by adding `-Xmx1g`",
"scope": "machine"
},
"xml.server.binary.trustedHashes": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "List of the SHA256 hashes of trusted copies of the lemminx (XML language server) binary. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Preferences%22%2C%22section%22%3A%22trusted-binary-hashes%22%7D%5D) for more information",
"default": [],
"scope": "application"
},
"xml.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"markdownDescription": "Traces the communication between VS Code and the XML language server in the Output view. Default is `off`.",
"scope": "window"
},
"xml.logs.client": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable logging to the Output view. Default is `true`."
},
"xml.downloadExternalResources.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Download external resources like referenced DTD, XSD. Default is `true`.",
"scope": "window"
},
"xml.catalogs": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Register XML catalog files. See how to configure [XML catalog with XSD](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xml-catalog-with-xsd%22%7D%5D) or [XML catalog with DTD](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xml-catalog-with-dtd%22%7D%5D) for more information.",
"scope": "window"
},
"xml.fileAssociations": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"markdownDescription": "File glob pattern. Example: `**/*.Format.ps1xml`\n\nMore information on the glob syntax: https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob"
},
"systemId": {
"type": "string",
"description": "The path or URL to the XML schema (XSD or DTD)."
}
},
"required": [
"pattern",
"systemId"
]
},
"markdownDescription": "Allows XML schemas/ DTD to be associated to file name patterns. Please refer to [XML file association with XSD](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xml-file-association-with-xsd%22%7D%5D) or [XML file association with DTD](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xml-file-association-with-dtd%22%7D%5D) for more information. \n\nExample:\n```json\n[{\n \"pattern\": \"file1.xml\",\n \"systemId\": \"path/to/file.xsd\"\n},\n{\n \"pattern\": \"**/*.xsd\",\n \"systemId\": \"https://www.w3.org/2001/XMLSchema.xsd\"\n}]\n```",
"scope": "window"
},
"xml.foldings.includeClosingTagInFold": {
"type": "boolean",
"default": false,
"markdownDescription": "Minimize the closing tag after folding. Default is `false`.",
"scope": "window"
},
"xml.format.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable ability to format document. Default is `true`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatenabled%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.emptyElements": {
"type": "string",
"enum": [
"ignore",
"collapse",
"expand"
],
"default": "ignore",
"markdownDescription": "Expand/collapse empty elements. Default is `ignore`. Not supported by the experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatemptyelements%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.enforceQuoteStyle": {
"type": "string",
"enum": [
"preferred",
"ignore"
],
"markdownEnumDescriptions": [
"Use preferred quote style set by `xml.preferences.quoteStyle` when formatting.",
"Ignore quote style formatting."
],
"default": "ignore",
"markdownDescription": "Enforce `preferred` quote style (set by `#xml.preferences.quoteStyle#`) or `ignore` quote style when formatting. Default is `ignore`. Not supported by the experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatenforcequotestyle%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.experimental": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable experimental formatter. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatexperimental%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.grammarAwareFormatting": {
"type": "boolean",
"default": true,
"markdownDescription": "Use Schema/DTD grammar information while formatting. Default is `true`. Supported only with experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatgrammarawareformatting%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.joinCDATALines": {
"type": "boolean",
"default": false,
"markdownDescription": "Set to `true` to join lines in CDATA content during formatting. Default is `false`. Not supported by the experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatjoincdatalines%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.joinCommentLines": {
"type": "boolean",
"default": false,
"markdownDescription": "Join comment content on format. Default is `false`. Not supported by the experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatjoincommentlines%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.joinContentLines": {
"type": "boolean",
"default": false,
"markdownDescription": "Normalize the whitespace of content inside an element. Newlines and excess whitespace are removed. Default is `false`. Not supported by the experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatjoincontentlines%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.maxLineWidth": {
"type": "integer",
"default": 80,
"markdownDescription": "Max line width. Default is `80`. Supported only with experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatmaxlinewidth%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.preserveAttributeLineBreaks": {
"type": "boolean",
"default": false,
"markdownDescription": "Preserve line breaks that appear before and after attributes. This setting is overridden if `#xml.format.splitAttributes#` is set to `true`. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatpreserveattributelinebreaks%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.preserveEmptyContent": {
"type": "boolean",
"default": false,
"markdownDescription": "Preserve empty content/whitespace in a tag. Default is `false`. Not supported by the experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatpreserveemptycontent%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.preservedNewlines": {
"type": "integer",
"enum": [
0,
1,
2,
3
],
"default": 2,
"markdownDescription": "Preserve new lines that separate tags. The value represents the maximum number of new lines per section. A value of 0 removes all new lines. Default is `2`. Not supported by the experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatpreservednewlines%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.preserveSpace": {
"type": "array",
"default": [
"xsl:text",
"xsl:comment",
"xsl:processing-instruction",
"literallayout",
"programlisting",
"screen",
"synopsis",
"pre",
"xd:pre"
],
"items": {
"type": "string"
},
"markdownDescription": "Element names for which spaces will be preserved. Supported only with experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatpreservespace%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.spaceBeforeEmptyCloseTag": {
"type": "boolean",
"default": true,
"markdownDescription": "Insert space before end of self closing tag. \nExample:\n ```<tag/> -> <tag />```. Not supported by the experimental formatter. Default is `true`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatspacebeforeemptyclosetag%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.xsiSchemaLocationSplit": {
"type": "string",
"enum": [
"onElement",
"onPair",
"none"
],
"markdownEnumDescriptions": [
"Put a new line after each namespace and URI, arranging them into one column.",
"Put a new line after each URI, arranging the content into pairs of namespace and URI.",
"Ignore `xsi:schemaLocation` content formatting."
],
"default": "none",
"markdownDescription": "Split `xsi:schemaLocation` content. Default is `none`. Not supported by the experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatxsischemalocationsplit%22%7D%5D) for more information",
"scope": "window"
},
"xml.format.splitAttributes": {
"type": "boolean",
"default": false,
"markdownDescription": "Split multiple attributes each onto a new line. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatsplitattributes%22%7D%5D) for more information.",
"scope": "window"
},
"xml.format.splitAttributesIndentSize": {
"type": "number",
"default": 2,
"markdownDescription": "How many levels to indent the attributes by when `#xml.format.splitAttributes#` is `true`. Default value is `2`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatsplitattributesindentsize%22%7D%5D) for more information"
},
"xml.format.closingBracketNewLine": {
"type": "boolean",
"default": false,
"markdownDescription": "The option to put a closing bracket on a newline when `#xml.format.splitAttributes#` is `true`. Default value is `false`. Not supported by the experimental formatter. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatclosingbracketnewline%22%7D%5D) for more information."
},
"xml.completion.autoCloseTags": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable autoclosing of XML tags. Default is `true`. \n\nIMPORTANT: Turn off `#editor.autoClosingTags#` for this to work.",
"scope": "window"
},
"xml.completion.autoCloseRemovesContent": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable the content of an element being removed when the element start tag is turned into a self-closing tag. The default setting is to remove the content. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Preferences%22%2C%22section%22%3A%22auto-close-removes-content%22%7D%5D) for more information.",
"scope": "window"
},
"xml.codeLens.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable XML CodeLens. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22CodeLens%22%2C%22section%22%3A%22Code%20Lens%22%7D%5D) for information about CodeLens features"
},
"xml.preferences.quoteStyle": {
"type": "string",
"enum": [
"single",
"double"
],
"default": "double",
"markdownDescription": "Preferred quote style to use for completion: `single` quotes, `double` quotes. Default is `double`.",
"scope": "window"
},
"xml.preferences.showSchemaDocumentationType": {
"type": "string",
"default": "all",
"enum": [
"documentation",
"appinfo",
"all",
"none"
],
"markdownEnumDescriptions": [
"Documentation comes from the `xs:documentation` element.",
"Documentation comes from the `xs:appinfo` element.",
"Documentation comes from the `xs:documentation` and `xs:appinfo` elements.",
"Displays no documentation."
],
"markdownDescription": "Specifies the source of the XML schema documentation displayed on hover and completion. Default is `all`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Preferences%22%2C%22section%22%3A%22documentation-type%22%7D%5D) for more information.",
"scope": "window"
},
"xml.validation.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable all validation. Default is `true`.",
"scope": "window"
},
"xml.validation.namespaces.enabled": {
"type": "string",
"default": "always",
"enum": [
"always",
"never",
"onNamespaceEncountered"
],
"markdownEnumDescriptions": [
"Enable namespaces validation.",
"Disable namespaces validation.",
"Enable namespaces validation only when the root element declares an xmlns namespace."
],
"markdownDescription": "Enable/disable namespaces validation. Default is `always`. Ignored if `#xml.validation.enabled#` is set to `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xmlnamespaceschemaenabled%22%7D%5D) for more information.",
"scope": "window"
},
"xml.validation.schema.enabled": {
"type": "string",
"default": "always",
"enum": [
"always",
"never",
"onValidSchema"
],
"markdownEnumDescriptions": [
"Enable schema based validation.",
"Disable schema based validation.",
"Enable schema based validation only when the declared xsi:schemaLocation hint or xsi:noNamespaceSchemaLocation is valid for the root element."
],
"markdownDescription": "Enable/disable schema based validation. Default is `always`. Ignored if `#xml.validation.enabled#` is set to `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xmlvalidationschemaenabled%22%7D%5D) for more information.",
"scope": "window"
},
"xml.validation.disallowDocTypeDecl": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable if a fatal error is thrown if the incoming document contains a DOCTYPE declaration. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22disallow-doc-type-declarations%22%7D%5D) for more information",
"scope": "window"
},
"xml.validation.resolveExternalEntities": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable resolve of external entities. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22resolve-external-entities%22%7D%5D) for more information. Disabled for untrusted workspaces",
"scope": "window"
},
"xml.validation.noGrammar": {
"type": "string",
"enum": [
"ignore",
"hint",
"info",
"warning",
"error"
],
"default": "hint",
"markdownDescription": "The message severity when a document has no associated grammar. Default is `hint`.",
"scope": "window"
},
"xml.symbols.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable document symbols (Outline). Default is `true`. No symbols are given if `\"xml.symbols.enabled\": false`.",
"scope": "window"
},
"xml.symbols.excluded": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Disable document symbols (Outline) for the given file name patterns. Updating file name patterns does not automatically reload the Outline view for the relevant file(s). Each file must either be reopened or changed, in order to trigger an Outline view reload.\n\nExample:\n```\n[\n \"**/*LargeFile.xml\"\n]```.",
"scope": "window"
},
"xml.symbols.maxItemsComputed": {
"type": "integer",
"default": 5000,
"markdownDescription": "The maximum number of outline symbols and folding regions computed (limited for performance reasons). Default is `5000`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Symbols%22%2C%22section%22%3A%22xmlsymbolsmaxitemscomputed%22%7D%5D) for more information."
},
"xml.symbols.showReferencedGrammars": {
"type": "boolean",
"default": true,
"markdownDescription": "Show referenced grammars in the Outline. Default is `true`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Symbols%22%2C%22section%22%3A%22xmlsymbolsshowreferencedgrammars%22%7D%5D) for more information.",
"scope": "window"
},
"xml.symbols.filters": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"markdownDescription": "File glob pattern. Example: `**/*.Format.ps1xml`\n\nMore information on the glob syntax: https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob"
},
"expressions": {
"type": "array",
"default": [],
"items": {
"type": "object",
"description": "The XML symbol expression.",
"properties": {
"xpath": {
"type": "string",
"markdownDescription": "The XPath expression of the filter."
},
"excluded": {
"type": "boolean",
"description": "Exclude/Include the node which matches the XPath expression."
},
"inlineAttribute": {
"type": "boolean",
"description": "Whether or not to show an attribute expression inline with the owning element instead of nested."
},
"showAttributeName": {
"type": "boolean",
"description": "Whether or not the attribute expression name should be shown along with its value (for inline attributes only)."
}
}
},
"markdownDescription": "Array of XML symbol expressions"
}
},
"required": [
"pattern",
"expressions"
]
},
"markdownDescription": "Allows XML symbols filter to be associated to file name patterns. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Symbols%22%2C%22section%22%3A%22xmlsymbolsfilters%22%7D%5D) for more information.. \n\nExample:\n```json\n[\n {\n \"pattern\": \"pom.xml\",\n \"expressions\": [\n {\n \"xpath\": \"//text()\"\n }\n ]\n }\n]\n```",
"scope": "window"
},
"xml.extension.jars": {
"type": "array",
"default": [],
"markdownDescription": "An array of paths to JARs that should be contributed to the LemMinX classpath. The paths can include glob patterns. This is intended to be used as a tool for developing extensions to vscode-xml. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Preferences%22%2C%22section%22%3A%22extension-jars%22%7D%5D) for more information",
"scope": "window"
}
}
},
"configurationDefaults": {
"[xml]": {
"editor.autoClosingBrackets": "never",
"files.trimFinalNewlines": true
},
"[xsl]": {
"editor.autoClosingBrackets": "never",
"files.trimFinalNewlines": true
}
},
"commands": [
{
"command": "xml.open.docs.home",
"title": "Open XML Documentation",
"category": "XML"
},
{
"command": "xml.validation.current.file",
"title": "Revalidate current XML file",
"category": "XML"
},
{
"command": "xml.validation.all.files",
"title": "Revalidate all opened XML files",
"category": "XML"
},
{
"command": "xml.command.bind.grammar",
"title": "Bind to grammar/schema file",
"category": "XML"
}
],
"menus": {
"commandPalette": [
{
"command": "xml.validation.current.file",
"when": "editorLangId == xml"
},
{
"command": "xml.command.bind.grammar",
"when": "resourceFilename =~ /xml/ && editorIsOpen"
}
]
},
"jsonValidation": [
{
"fileMatch": "package.json",
"url": "./schemas/package.schema.json"
}
]
}
}