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

Formatter does not preserve trailing comments #38

Closed
xeger opened this issue Sep 21, 2023 · 1 comment
Closed

Formatter does not preserve trailing comments #38

xeger opened this issue Sep 21, 2023 · 1 comment

Comments

@xeger
Copy link
Member

xeger commented Sep 21, 2023

πŸ‘“ 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.

@xeger 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 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`.
@xeger xeger closed this as completed in a220d98 Oct 23, 2023
@jeeeem
Copy link

jeeeem commented Oct 24, 2023

Awesome, any plan in including this update in vscode extension next release?

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

No branches or pull requests

2 participants