-
Notifications
You must be signed in to change notification settings - Fork 82
/
package.json
299 lines (299 loc) · 10.3 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
{
"name": "vscode-xml",
"displayName": "XML",
"description": "XML Language Support by Red Hat",
"version": "0.9.2",
"author": "Red Hat",
"publisher": "redhat",
"icon": "icons/icon128.png",
"license": "EPL-1.0",
"bugs": "https://github.com/redhat-developer/vscode-xml/issues",
"preview": true,
"keywords": [
"xml",
"xsl",
"xsd",
"dtd"
],
"engines": {
"vscode": "^1.27.0"
},
"activationEvents": [
"onLanguage:xml",
"onLanguage:xsl"
],
"main": "./dist/extension",
"scripts": {
"vscode:prepublish": "webpack --mode production",
"compile": "webpack --mode none",
"watch": "webpack --mode development --watch --info-verbosity verbose",
"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/mocha": "^5.2.6",
"@types/node": "^10.14.16",
"@types/vscode": "^1.37.0",
"gulp": "^4.0.2",
"gulp-tslint": "^8.1.3",
"gulp-rename": "^1.4.0",
"mocha": "^6.2.1",
"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": "^4.32.2",
"webpack-cli": "^3.3.2"
},
"dependencies": {
"expand-home-dir": "^0.0.3",
"find-java-home": "0.2.0",
"glob": "^7.1.4",
"path-exists": "^4.0.0",
"vscode-languageclient": "^5.2.1"
},
"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": true,
"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.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.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": "-noverify -Xmx64M -XX:+UseG1GC -XX:+UseStringDeduplication",
"description": "Specifies extra VM arguments used to launch the XML Language Server. Eg. use `-noverify -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": "~/.lsp4xml",
"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). No symbols are given if `\"xml.symbol.enabled\": false`.",
"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"
}
}
},
"configurationDefaults": {
"[xml]": {
"editor.autoClosingBrackets": "never"
}
},
"languages": [
{
"id": "xml",
"extensions": [
".ent",
".mod"
]
}
],
"jsonValidation": [
{
"fileMatch": "package.json",
"url": "./schemas/package.schema.json"
}
]
}
}