Skip to content

Commit

Permalink
Added subheader and link to docs in autoCloseRemovesContent descripti…
Browse files Browse the repository at this point in the history
…on (#498)

Added subsection to XML Preferences documentation for Auto Close Removes Content feature and link in settings description.

Closes #496

Signed-off-by: Alexander Chen [email protected]
  • Loading branch information
Alexander Xu Chen authored Jun 7, 2021
1 parent f35fef7 commit a7fb6b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/Preferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ Then the closing tag for the `<child>` element will automatically be inserted:

Similarly, the closing tag will be automatically completed when typing `</` to start a closing tag.

### Auto Close Removes Content

The `xml.completion.autoCloseRemovesContent` setting controls if all content inside an element gets deleted when the start tag gets changed to a self-closing tag.

For instance if `xml.completion.autoCloseRemovesContent` is set to `true`, in the following code:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
"xml.completion.autoCloseRemovesContent": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable the content of an element being removed when the element start tag is turned into a self-closing tag. The default setting is to remove the content.",
"markdownDescription": "Enable/disable the content of an element being removed when the element start tag is turned into a self-closing tag. The default setting is to remove the content. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Preferences%22%2C%22section%22%3A%22auto-close-removes-content%22%7D%5D) for more information.",
"scope": "window"
},
"xml.codeLens.enabled": {
Expand Down

0 comments on commit a7fb6b6

Please sign in to comment.