You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Description
6
6
7
-
This VS Code extension provides support for creating and editing XML documents, based on the [LSP4XML language server](https://github.com/angelozerr/lsp4xml), running with Java.
7
+
This VS Code extension provides support for creating and editing XML documents, based on the [LSP4XML Language Server](https://github.com/angelozerr/lsp4xml), running with Java.
*`xml.autoCloseTags.enabled` : Enable/disable automatic tag closing.
60
65
**Note** 'editor.autoClosingBrackets' must be turned off to work.
61
66
*`xml.server.vmargs`: Extra VM arguments used to launch the XML Language Server. Requires VS Code restart.
62
67
*`xml.validation.enabled`: Set to `false` to disable all validation. Defaults to `true`.
63
68
*`xml.validation.schema`: Set to `false` to disable schema validation. Defaults to `true`.
64
69
*`xml.validation.noGrammar`: The message severity when a document has no associated grammar. Defaults to `hint`.
65
-
*`xml.format.spaceBeforeEmptyCloseTag`: Set to `true` to insert space before the end of a self closing tag. Defaults to `true`.
66
-
*`xml.format.quotations`: Set to `doubleQuotes` to format and only use `"`, or `singleQuotes` to format and only use `'`. Defaults to `doubleQuotes`.
67
-
*`xml.format.preserveEmptyContent`: Set to `true` to preserve standalone whitespace content in an element. Defaults to `false`.
68
70
*`xml.server.workDir`: Set an absolute path for all cached schemas to be stored. Defaults to `~/.lsp4xml`.
69
71
70
-
Since 0.6.0:
71
-
*`xml.format.preservedNewLines`: Set the maximum amount of newlines between elements. Defaults to `2`.
72
+
Since 0.7.0:
73
+
*`xml.java.home`: Set the Java path required to run the XML Language Server. If not set, falls back to either the `java.home` preference or the `JAVA_HOME` or `JDK_HOME` environment variables.
72
74
73
75
More detailed info in the [Wiki](https://github.com/redhat-developer/vscode-xml/wiki/Preferences).
Copy file name to clipboardExpand all lines: package.json
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,15 @@
188
188
"description": "Enable/disable autoclosing of XML tags. \n\nIMPORTANT: Turn off editor.autoClosingTags for this to work",
189
189
"scope": "window"
190
190
},
191
+
"xml.java.home": {
192
+
"type": [
193
+
"string",
194
+
"null"
195
+
],
196
+
"default": null,
197
+
"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\"",
0 commit comments