Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

New setting to prevent auto self close destroying content #130

Merged
merged 1 commit into from
May 1, 2021

Conversation

enxio
Copy link
Owner

@enxio enxio commented May 1, 2021

Adds the setting xml.completion.autoCloseRemovesContent,
which defaults to true (to preserve existing behaviour).
When the setting is set to false,
and the auto close tags funcitonality is enabled,
<bbb /> and </aaa> won't be deleted
when an / is inserted at the pipe:

<aaa |
  <bbb />
</aaa>

Closes redhat-developer/vscode-xml#440

Signed-off-by: David Thompson [email protected]

Adds the setting `xml.completion.autoCloseRemovesContent`,
which defaults to `true` (to preserve existing behaviour).
When the setting is set to `false`,
and the auto close tags funcitonality is enabled,
`<bbb />` and `</aaa>` won't be deleted
when an `/` is inserted at the pipe:

```xml
<aaa |
  <bbb />
</aaa>
```

Closes redhat-developer/vscode-xml#440

Signed-off-by: David Thompson <[email protected]>
@enxio enxio merged commit 0dd4db7 into enxio:master May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto self-closing feature deletes content
2 participants