-
Notifications
You must be signed in to change notification settings - Fork 82
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
Formatting of newlines at EOF #196
Comments
Indeed WE should have a new settings for that. An interesting features to explore is to try get this settings from editorconfig https://github.com/editorconfig/editorconfig/wiki/Newline-at-End-of-File-Support if thé XML new settings is not defined |
3.15 LSP specification provides the |
Once eclipse-lemminx/lemminx#628 will be done, we will able to LSP4J |
Maybe I'm missing something, but I don't see any setting for preserving/ensuring there's a newline at EOF, and the formatter definitely removes any I add myself. Seeing this issue and it being resolved made me think it was a foregone issue, but clearly it's not? I'm using version 0.23. EDIT: Never mind, it's not a setting in this extension specifically, but rather under "Text Editor" -> "Files" |
https://github.com/redhat-developer/vscode-xml/blob/main/docs/Formatting.md#filesinsertfinalnewline should work. If it doesn't work, please create a new issue with your usecase. |
Given the following xml:
There are 2 issues when formatting:
The text was updated successfully, but these errors were encountered: