-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added closingBracketNewLine option #1051
Conversation
test this please |
1 similar comment
test this please |
Changes to package.json on vscode-xml: redhat-developer/vscode-xml/pull/508 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's a case that isn't working as expected:
<aaa>
<bbb attr1="value" attr2="value" />
</aaa>
When you format with the setting enabled, you would expect the end of the tag />
to be indented to the same level as the start of the tag <bbb
. Instead, you get:
<aaa>
<bbb
attr1="value"
attr2="value"
/>
</aaa>
It would be good to fix this case, and add a unit test for it.
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/settings/XMLFormattingOptions.java
Outdated
Show resolved
Hide resolved
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/settings/XMLFormattingOptions.java
Outdated
Show resolved
Hide resolved
Another small clarification about behaviour, similar to your comment: if we have: <aaa>
<bbb attr1="value" attr2="value">
</bbb>
</aaa> along with the previous issue, when formatted, it becomes: <aaa>
<bbb
attr1="value"
attr2="value"
></bbb>
</aaa> So not only does the indenting not follow, but the closing bracket is on the same line as the closing tag. Should this be fixed with my feature, or is this a part of another formatting setting?
**Edit - by enabling |
Except for the fact that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its working really well, just needs a small improvement in the documentation
Added formatting option to put XML closing
tagbracket on newline.Closes redhat-developer/vscode-xml#435
Signed-off-by: Alexander Chen [email protected]