forked from redhat-developer/vscode-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
903 lines (903 loc) · 39.8 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
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
{
"name": "vscode-xml",
"displayName": "XML",
"description": "XML Language Support by Red Hat",
"version": "0.27.2",
"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",
"RelaxNG",
"rng",
"rnc",
"TEI",
"MEI",
"SVG"
],
"xmlServer": {
"version": "0.28.0"
},
"binaryServerDownloadUrl": {
"linux": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-linux.zip",
"alpine": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-alpine.zip",
"osx-x86_64": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-osx-x86_64.zip",
"osx-aarch_64": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-osx-aarch_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.67.0"
},
"activationEvents": [
"onLanguage:xml",
"onLanguage:xsl",
"onLanguage:dtd",
"onLanguage:svg",
"onCommand:xml.open.docs",
"onCommand:xml.open.docs.home"
],
"main": "./dist/extension",
"scripts": {
"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",
"eslint": "npx eslint .",
"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": "^18.17.1",
"@types/vscode": "^1.37.0",
"@types/yauzl": "^2.9.1",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"eslint": "^8.20.0",
"eslint-webpack-plugin": "^3.2.0",
"gulp": "^4.0.2",
"gulp-rename": "^1.4.0",
"minimist": ">=1.2.6",
"serialize-javascript": "^4.0.0",
"ts-loader": "^9.3.1",
"typescript": "^4.9.4",
"vscode-test": "^1.2.0",
"webpack": "^5.76.0",
"webpack-cli": "^4.6.0"
},
"dependencies": {
"@redhat-developer/vscode-redhat-telemetry": "^0.8.0",
"expand-home-dir": "^0.0.3",
"fs-extra": "^8.1.0",
"glob": "^7.1.4",
"jdk-utils": "^0.4.3",
"path-exists": "^4.0.0",
"vscode-languageclient": "^8.0.1",
"yauzl": "^2.10.0"
},
"contributes": {
"languages": [
{
"id": "dtd",
"extensions": [
".dtd",
".ent",
".mod"
],
"aliases": [
"DTD",
"dtd"
]
},
{
"id": "rnc",
"extensions": [
".rnc"
],
"aliases": [
"RelaxNG Compact",
"rnc"
],
"configuration": "./rnc.language-configuration.json"
}
],
"grammars": [
{
"language": "dtd",
"scopeName": "text.xml.dtd",
"path": "./syntaxes/dtd.tmLanguage.json"
},
{
"language": "rnc",
"scopeName": "source.rnc",
"path": "./syntaxes/rnc.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": [
"usesOnlineServices",
"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\": \"http://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`. 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`. 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.legacy": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable legacy formatter. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Formatting%22%2C%22section%22%3A%22xmlformatlegacy%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`. Not supported by legacy 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`. 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`. 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`. 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": 100,
"markdownDescription": "Max line width. Set to `0` to disable this setting. Default is `100`. Not supported by legacy 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": true,
"markdownDescription": "Preserve line breaks that appear before and after attributes. This setting is overridden if `#xml.format.splitAttributes#` is set to `splitNewLine` or `alignWithFirstAttr`. Default is `true`. 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`. Supported only with legacy 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`. 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. Not supported by legacy 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 />```. 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": "onPair",
"markdownDescription": "Split `xsi:schemaLocation` content. Default is `onPair`. 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": "string",
"enum": [
"preserve",
"splitNewLine",
"alignWithFirstAttr"
],
"default": "preserve",
"markdownDescription": "Split multiple attributes each onto a new line or align attributes to the first. Default is `preserve`. Indicate level of indentation with `#xml.format.splitAttributesIndentSize#`. 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`. 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.xInclude.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable validation for `xi:include`. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xmlvalidationxincludeenabled%22%7D%5D) for more information.",
"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.validation.filters": {
"type": "array",
"default": [
{
"pattern": "**.exsd",
"noGrammar": "ignore",
"schema": {
"enabled": "never"
}
},
{
"pattern": "**{.project,.classpath,plugin.xml,feature.xml,category.xml,.target,.product}",
"noGrammar": "ignore"
}
],
"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"
}
},
"required": [
"pattern"
]
}
},
"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.references": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"markdownDescription": "matches the files that reference declared with `expressions` applies to.\n\nMore information on the glob syntax: https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob"
},
"prefix": {
"type": "string",
"description": "The prefix to use (ex : '#') for from for all the declared reference expressions."
},
"multiple": {
"type": "boolean",
"description": "true if the from attribute, text can declare several from references and false otherwise for all the declared reference expressions."
},
"expressions": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"prefix": {
"type": "string",
"description": "The prefix to use (ex : '#') for from."
},
"multiple": {
"type": "boolean",
"description": "true if the from attribute, text can declare several from references and false otherwise."
},
"from": {
"type": "string",
"description": "The from reference DOM node (attribute, text) declared with XPath (ex: foo/@attr, foo/text())."
},
"to": {
"type": "string",
"description": "The to reference DOM node (attribute, text) declared with XPath (ex: foo/@attr, foo/text())."
}
}
},
"required": [
"from",
"to"
]
}
},
"required": [
"pattern",
"expressions"
]
},
"markdownDescription": "Allows references for the given file name patterns. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Features/XMLReferencesFeatures%22%2C%22section%22%3A%22xmlreferencesfeatures%22%7D%5D) for more information.",
"scope": "window"
},
"xml.colors": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"markdownDescription": "matches the files that colors declared with `expressions` applies to.\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",
"properties": {
"xpath": {
"type": "string",
"description": "The color DOM node (attribute, text) declared with XPath (ex: foo/@color, foo/text())"
}
}
},
"required": [
"xpath"
]
}
},
"required": [
"pattern",
"expressions"
]
},
"markdownDescription": "Allows colors for the given file name patterns. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Features/XMLColorsFeatures%22%2C%22section%22%3A%22xmlcolorsfeatures%22%7D%5D) for more information.",
"scope": "window"
},
"xml.filePathSupport.mappings": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"markdownDescription": "matches the files that file path declared with `expressions` applies to.\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",
"properties": {
"xpath": {
"type": "string",
"description": "The file path DOM node (attribute, text) declared with XPath (ex: foo/@path, foo/text())"
},
"filter": {
"type": "array",
"items": {
"type": "string"
},
"description": "String array which contains allowed file extensions (ex: [\".png\", \".gif\", \".jpg\"])"
},
"separator": {
"type": "string",
"description": "Separator character to use if multiple file paths are allowed (ex: \";\")"
}
}
},
"required": [
"xpath"
]
}
},
"required": [
"pattern",
"expressions"
]
},
"markdownDescription": "Allows file path for the given file name patterns. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Features/XMLFilePathSupport%22%2C%22section%22%3A%22xmlfilepathsfeatures%22%7D%5D) for more information.",
"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
},
"[dtd]": {
"editor.autoClosingBrackets": "never",
"files.trimFinalNewlines": true
},
"[svg]": {
"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"
},
{
"command": "xml.restart.language.server",
"title": "Restart XML Language Server",
"category": "XML"
},
{
"command": "xml.refactor.surround.with.tags",
"title": "Surround with Tags (Wrap)",
"category": "XML"
},
{
"command": "xml.refactor.surround.with.comments",
"title": "Surround with Comments",
"category": "XML"
},
{
"command": "xml.refactor.surround.with.cdata",
"title": "Surround with CDATA",
"category": "XML"
}
],
"menus": {
"commandPalette": [
{
"command": "xml.validation.current.file",
"when": "editorLangId in xml.supportedLanguageIds && XMLLSReady"
},
{
"command": "xml.validation.all.files",
"when": "XMLLSReady"
},
{
"command": "xml.command.bind.grammar",
"when": "resourceFilename =~ /xml/ && editorIsOpen && XMLLSReady"
},
{
"command": "xml.restart.language.server",
"when": "XMLLSReady"
},
{
"command": "xml.refactor.surround.with.tags",
"when": "editorLangId in xml.supportedLanguageIds && XMLLSReady"
},
{
"command": "xml.refactor.surround.with.comments",
"when": "editorLangId in xml.supportedLanguageIds && XMLLSReady"
},
{
"command": "xml.refactor.surround.with.cdata",
"when": "editorLangId in xml.supportedLanguageIds && XMLLSReady"
}
],
"editor/context": [
{
"command": "xml.refactor.surround.with.tags",
"when": "editorLangId in xml.supportedLanguageIds && XMLLSReady",
"group": "1_modification"
},
{
"command": "xml.refactor.surround.with.comments",
"when": "editorLangId in xml.supportedLanguageIds && XMLLSReady",
"group": "1_modification"
},
{
"command": "xml.refactor.surround.with.cdata",
"when": "editorLangId in xml.supportedLanguageIds && XMLLSReady",
"group": "1_modification"
}
]
},
"jsonValidation": [
{
"fileMatch": "package.json",
"url": "./schemas/package.schema.json"
}
]
}
}