-
Notifications
You must be signed in to change notification settings - Fork 93
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
Support joinCommentLines setting with experimental formatter #1254
Support joinCommentLines setting with experimental formatter #1254
Conversation
This PR only considers the tests/use cases for the joinCommentLines setting. There is a lot more missing formatting for comments that are unrelated to this setting that could be done in another PR. |
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/services/format/DOMCommentFormatter.java
Outdated
Show resolved
Hide resolved
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/services/format/DOMCommentFormatter.java
Outdated
Show resolved
Hide resolved
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/services/format/DOMCommentFormatter.java
Outdated
Show resolved
Hide resolved
Indeed let support comment formatting step by step with several p. It will easier to review it. Thats why please remove the code with formatelementcategory which is used for text node and nor for text comments node. |
742c1db
to
1652500
Compare
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.
Good work so far, noticed a few things while playing with the formatter
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/services/format/DOMCommentFormatter.java
Outdated
Show resolved
Hide resolved
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/services/format/DOMCommentFormatter.java
Outdated
Show resolved
Hide resolved
...test/java/org/eclipse/lemminx/services/format/experimental/XMLFormatterExperimentalTest.java
Show resolved
Hide resolved
1652500
to
9b82684
Compare
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/services/format/DOMCommentFormatter.java
Outdated
Show resolved
Hide resolved
9b82684
to
9209c19
Compare
.../java/org/eclipse/lemminx/services/format/experimental/XMLFormatterJoinCommentLinesTest.java
Outdated
Show resolved
Hide resolved
.../java/org/eclipse/lemminx/services/format/experimental/XMLFormatterJoinCommentLinesTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jessica He <jhe@redhat.com>
9209c19
to
a35d8d5
Compare
The code looks good, @datho7561 could you please test it. If it is working, we can merge it and after that @JessicaJHee please:
|
Fixes #1243
Signed-off-by: Jessica He jhe@redhat.com