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
{{ message }}
Repository navigation
Please include option not to auto-self-close empty nodes #793
There are some situations (Salesforce metadata) where the metadata should not self-close:
This is the desired XML:
<searchLayouts></searchLayouts>
but the plugin auto-closes it to
<searchLayouts/>
I realize that maybe this isn't a best practice, but it is causing a ton of changes in our VCS that we'd rather not have to deal with, and it clutters IDEs until the commit is cleaned with Husky and Prettier.
Could we please have a boolean to prevent this kind of cleanup?
Activity
kddnewton commentedon Jul 8, 2025
Yes, I think this is an option we can support.
Add xmlSelfClosingTags option to disable auto-self-closing empty elem…