Skip to content
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

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

JessicaJHee
Copy link
Contributor

Fixes #1243

Signed-off-by: Jessica He jhe@redhat.com

@JessicaJHee
Copy link
Contributor Author

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.

@angelozerr
Copy link
Contributor

There is a lot more missing formatting for comments that are unrelated to this setting that could be done in another PR.

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.

Copy link
Contributor

@datho7561 datho7561 left a 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

Signed-off-by: Jessica He <jhe@redhat.com>
@angelozerr
Copy link
Contributor

The code looks good, @datho7561 could you please test it.

If it is working, we can merge it and after that @JessicaJHee please:

  • update vscode-xml doc to say that jointCommentLines is now supported (in package.json + Format.md)
  • please create the issues that we discussed in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support xml.format.joinCommentLines setting with experimental formatter
3 participants