-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
409 lines (409 loc) · 14.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
{
"name": "coc-xml",
"version": "1.14.1",
"description": "XML extension for coc.nvim",
"main": "lib/index.js",
"author": "Heyward Fann <[email protected]>",
"license": "MIT",
"scripts": {
"build": "node esbuild.mjs",
"lint": "eslint src --ext ts",
"prepare": "node esbuild.mjs"
},
"engines": {
"coc": "^0.0.80"
},
"keywords": [
"coc.nvim",
"xml"
],
"activationEvents": [
"onLanguage:xml",
"onLanguage:xslt"
],
"dependencies": {},
"devDependencies": {
"@rgrove/parse-xml": "^4.0.1",
"@types/glob": "^8.0.0",
"@types/node": "16",
"@types/node-fetch": "^2.6.2",
"@types/semver": "^7.3.13",
"@types/tunnel": "^0.0.7",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"coc.nvim": "^0.0.83-next.18",
"esbuild": "^0.25.0",
"eslint": "^8.27.0",
"glob": "^10.3.3",
"node-fetch": "^2.6.0",
"path-exists": "^4.0.0",
"semver": "^7.3.8",
"tunnel": "^0.0.6",
"typescript": "^5.0.3"
},
"repository": {
"type": "git",
"url": "https://github.com/fannheyward/coc-xml"
},
"prettier": {
"printWidth": 160,
"singleQuote": true
},
"contributes": {
"configuration": {
"type": "object",
"title": "XML configuration",
"properties": {
"xml.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the XML language server.",
"scope": "window"
},
"xml.catalogs": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Array of XML Catalogs",
"scope": "window"
},
"xml.logs.client": {
"type": "boolean",
"default": false,
"description": "Should the server log to client output"
},
"xml.format.splitAttributes": {
"type": "boolean",
"default": false,
"description": "Split multiple attributes each onto a new line",
"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`.",
"scope": "window"
},
"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.format.emptyElements": {
"type": "string",
"enum": [
"ignore",
"collapse",
"expand"
],
"default": "ignore",
"markdownDescription": "Expand/collapse empty elements. Default is `ignore`.",
"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`.",
"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`.",
"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`",
"scope": "window"
},
"xml.format.joinCDATALines": {
"type": "boolean",
"default": false,
"description": "Join lines in a CDATA tag's content",
"scope": "window"
},
"xml.format.joinCommentLines": {
"type": "boolean",
"default": false,
"description": "Join comment content on format",
"scope": "window"
},
"xml.format.spaceBeforeEmptyCloseTag": {
"type": "boolean",
"default": true,
"description": "Insert space before end of self closing tag. \nExample:\n <tag/> -> <tag />",
"scope": "window"
},
"xml.format.joinContentLines": {
"type": "boolean",
"default": false,
"description": "Normalize the whitespace of content inside an element. Newlines and excess whitespace are removed.",
"scope": "window"
},
"xml.format.preserveEmptyContent": {
"type": "boolean",
"default": false,
"description": "Preserve empty content/whitespace in a tag.",
"scope": "window"
},
"xml.format.preservedNewlines": {
"type": "integer",
"enum": [
0,
1,
2,
3
],
"default": 2,
"description": "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.",
"scope": "window"
},
"xml.format.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable ability to format document",
"scope": "window"
},
"xml.format.quotations": {
"type": "string",
"enum": [
"doubleQuotes",
"singleQuotes"
],
"default": "doubleQuotes",
"description": "Which type of quotes to use for attribute values when formatting.",
"scope": "window"
},
"xml.format.trimTrailingWhitespace": {
"description": "Remove trailing whitespace when formatting",
"type": "boolean",
"default": false,
"scope": "window"
},
"xml.format.trimFinalNewlines": {
"description": "Remove newline characters at the end of the file when formatting",
"type": "boolean",
"default": false,
"scope": "window"
},
"xml.fileAssociations": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"systemId": {
"type": "string",
"description": "The path or URL to the XML schema (XSD or DTD)"
},
"pattern": {
"type": "string",
"description": "File glob pattern. Example: **/*.Format.ps1xml\n\nMore information on the glob syntax: https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob",
"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": [
"systemId",
"pattern"
]
},
"description": "Allows XML schemas to be associated to file name patterns.\n\nExample:\n[{\n \"systemId\": \"path/to/file.xsd\",\n \"pattern\": \"file1.xml\"\n},\n{\n \"systemId\": \"http://www.w3.org/2001/XMLSchema.xsd\",\n \"pattern\": \"**/*.xsd\"\n}]",
"markdownDescription": "Allows XML schemas to be associated to file name patterns.\n\nExample:\n```json\n[{\n \"systemId\": \"path/to/file.xsd\",\n \"pattern\": \"file1.xml\"\n},\n{\n \"systemId\": \"http://www.w3.org/2001/XMLSchema.xsd\",\n \"pattern\": \"**/*.xsd\"\n}]\n```",
"scope": "window"
},
"xml.completion.autoCloseTags": {
"type": "boolean",
"default": true,
"description": "Enable/disable autoclosing of XML tags. \n\nIMPORTANT: Turn off editor.autoClosingTags for this to work",
"scope": "window"
},
"xml.codeLens.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable XML CodeLens"
},
"xml.java.home": {
"type": [
"string",
"null"
],
"default": null,
"description": "Specifies the folder path to the JDK (8 or more recent) used to launch the XML Language Server.\nOn Windows, backslashes must be escaped, i.e.\n\"xml.java.home\": \"C:\\\\Program Files\\\\Java\\\\jdk1.8.0_161\"",
"scope": "window"
},
"xml.server.vmargs": {
"type": [
"string",
"null"
],
"default": "-Xmx64M -XX:+UseG1GC -XX:+UseStringDeduplication",
"description": "Specifies extra VM arguments used to launch the XML Language Server. Eg. use `-Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication` to bypass class verification, increase the heap size to 1GB and enable String deduplication with the G1 Garbage collector",
"scope": "window"
},
"xml.server.workDir": {
"type": "string",
"default": "~/.lemminx",
"description": "Set a custom folder path for cached XML Schemas. An absolute path is expected, although the ~ prefix (for the user home directory) is supported.",
"scope": "window"
},
"xml.validation.noGrammar": {
"type": "string",
"enum": [
"ignore",
"hint",
"info",
"warning",
"error"
],
"default": "hint",
"description": "The message severity when a document has no associated grammar.",
"scope": "window"
},
"xml.validation.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable all validation.",
"scope": "window"
},
"xml.validation.schema": {
"type": "boolean",
"default": true,
"description": "Enable/disable schema based validation. Ignored if \"xml.validation.enabled\": false.",
"scope": "window"
},
"xml.validation.disallowDocTypeDecl": {
"type": "boolean",
"default": false,
"description": "Enable/disable if a fatal error is thrown if the incoming document contains a DOCTYPE declaration.",
"scope": "window"
},
"xml.validation.resolveExternalEntities": {
"type": "boolean",
"default": true,
"description": "Enable/disable resolve of external entities.",
"scope": "window"
},
"xml.symbols.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable document symbols (Outline).",
"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`."
},
"xml.symbols.showReferencedGrammars": {
"type": "boolean",
"default": true,
"markdownDescription": "Show referenced grammars in the Outline. Default is `true.",
"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 ."
}
}
},
"markdownDescription": "Array of XML symbol expressions"
}
},
"required": [
"pattern",
"expressions"
]
},
"markdownDescription": "Allows XML symbols filter to be associated to file name patterns.",
"scope": "window"
},
"xml.symbols.excluded": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "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 \"**/*LargeFile.xml\"\n]",
"scope": "window"
}
}
},
"commands": [
{
"command": "xml.show.references",
"title": "Show XML references",
"category": "XML"
},
{
"command": "xml.updateLanguageServer",
"title": "Download latest version of LemMinX from repo.eclipse.org",
"category": "XML"
}
]
}
}