You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either the formatter should respect the xml.format.preservedNewlines value when formatting the ending lines, or a new setting should be added to control this behavior.
The text was updated successfully, but these errors were encountered:
I've just run into this problem. From my tests, it seems like the formatter honors what is being set in the files.insertFinalNewline VS Code setting. If this is set to true, the formatter no longer removes the ending EOL - so that is one way of how to workaround the problem.
Yet, I believe this really is an error and the formatter should rather leave the end of the file as-is. And that there is probably no need to introduce any setting for this, or is it?
After formatting any XML document, the empty line at the end is always removed.
This happens even if the following extension settings are set:
Either the formatter should respect the
xml.format.preservedNewlines
value when formatting the ending lines, or a new setting should be added to control this behavior.The text was updated successfully, but these errors were encountered: