-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Formatter does not preserve trailing comments #38
Comments
This was referenced Sep 21, 2023
xeger
changed the title
Formatter does not preserve trailing comments
Formatter does not preserve trailing comments & adds newlines in the wrong places
Oct 4, 2023
xeger
added a commit
that referenced
this issue
Oct 15, 2023
xeger
changed the title
Formatter does not preserve trailing comments & adds newlines in the wrong places
Formatter does not preserve trailing comments
Oct 15, 2023
xeger
added a commit
that referenced
this issue
Oct 15, 2023
Also eliminate useless trailing space after `:` when the node has no `name`.
xeger
added a commit
that referenced
this issue
Oct 15, 2023
Also eliminate useless trailing space after `:` when the node has no `name`.
Awesome, any plan in including this update in vscode extension next release? |
This was referenced Nov 4, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π What did you see?
When the final lines of a block are commented, the formatter removes them from its output.
β What did you expect to see?
Comments should be preserved.
π¦ Which tool/library version are you using?
Version 8.0.5 of this package.
π¬ How could we reproduce it?
See this branch for a reproduction of the problem in unit tests.
The text was updated successfully, but these errors were encountered: