Skip to content

Commit 76d3765

Browse files
NikolasKomonenfbricon
authored andcommitted
Add joingContentLines preference and fix README/CHANGELOG
Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
1 parent b8710c7 commit 76d3765

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# Change Log
22

3-
## [0.4.0](https://github.com/redhat-developer/vscode-xml/milestone/4?closed=1) (March 06, 2019)
3+
## [0.4.0](https://github.com/redhat-developer/vscode-xml/milestone/4?closed=1) (March 07, 2019)
44

55
### Enhancements
66

77
* Modified schema validation messages. See [#91](https://github.com/redhat-developer/vscode-xml/issues/91).
88
* Preference `xml.format.quotations` to set single vs double quotes for attribute values on format. See [lsp4xml#263](https://github.com/angelozerr/lsp4xml/issues/263).
99
* Preference `xml.format.preserveEmptyContent` to preserve a whitespace value in an element's content. See [#96](https://github.com/redhat-developer/vscode-xml/issues/96).
10-
* Removed support for preference `xml.format.joinContentLines`.
1110
* Compatibility with OSGi and p2. See [lsp4xml#288](https://github.com/angelozerr/lsp4xml/issues/288).
1211

1312
### Bug Fixes

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ The following settings are supported:
5353
* `xml.fileAssociations` : Associate XML Schemas to XML file patterns.
5454
* `xml.format.splitAttributes` : Set to `true` to split node attributes onto multiple lines during formatting. Defaults to `false`.
5555
* `xml.format.joinCDATALines` : Set to `true` to join lines in CDATA content during formatting. Defaults to `false`.
56+
* `xml.format.joinContentLines` : Set to `true` to join lines in node content during formatting. Defaults to `false`.
5657
* `xml.format.joinCommentLines` : Set to `true` to join lines in comments during formatting. Defaults to `false`.
5758
* `xml.format.enabled` : Enable/disable formatting.
5859
* `xml.autoCloseTags.enabled` : Enable/disable automatic tag closing.

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@
112112
"description": "Insert space before end of self closing tag. \nExample:\n <tag/> -> <tag />",
113113
"scope": "window"
114114
},
115+
"xml.format.joinContentLines": {
116+
"type": "boolean",
117+
"default": false,
118+
"description": "Normalize the whitespace of content inside an element. Newlines and excess whitespace are removed.",
119+
"scope": "window"
120+
},
115121
"xml.format.preserveEmptyContent": {
116122
"type": "boolean",
117123
"default": false,

0 commit comments

Comments
 (0)