Skip to content

Commit e6bcf4f

Browse files
committed
Format for xsi:schemaLocation
See eclipse-lemminx/lemminx#825 Signed-off-by: azerr <azerr@redhat.com>
1 parent 88983c8 commit e6bcf4f

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ The following settings are supported:
8080
* `xml.symbols.maxItemsComputed`: The maximum number of outline symbols and folding regions computed (limited for performance reasons). Default is `5000`.
8181
* `xml.codeLens.enabled`: Enable/disable XML CodeLens. Default is `false`.
8282
* `xml.symbols.excluded`: 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.
83-
84-
Since 0.13.0:
8583
* `files.trimTrailingWhitespace`: Now affects XML formatting. Enable/disable trailing whitespace trimming when formatting an XML document. Default is `false`.
8684

85+
Since 0.14.0:
86+
87+
* `xml.format.xsiSchemaLocationSplit`: Split `xsi:schemaLocation` content. Default is `none`.
88+
8789
## Articles
8890

8991
* [Improved XML grammar binding and more in Red Hat VS Code XML extension 0.13.0](https://developers.redhat.com/blog/2020/07/08/improved-xml-grammar-binding-and-more-in-red-hat-vs-code-xml-extension-0-13-0/)

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,22 @@
190190
"markdownDescription": "Enforce `preferred` quote style (set by `#xml.preferences.quoteStyle#`) or `ignore` quote style when formatting. Default is `ignore`",
191191
"scope": "window"
192192
},
193+
"xml.format.xsiSchemaLocationSplit": {
194+
"type": "string",
195+
"enum": [
196+
"onNamespace",
197+
"onLocation",
198+
"none"
199+
],
200+
"markdownEnumDescriptions": [
201+
"Split `xsi:schemaLocation` content after each namespace declaration",
202+
"Split `xsi:schemaLocation` content after each location declaration",
203+
"Ignore `xsi:schemaLocation` content formatting."
204+
],
205+
"default": "none",
206+
"markdownDescription": "Split `xsi:schemaLocation` content. Default is `none`",
207+
"scope": "window"
208+
},
193209
"xml.preferences.quoteStyle": {
194210
"type": "string",
195211
"enum": [

0 commit comments

Comments
 (0)