Even with every extension disabled except XML Tools, every time I save a file with this content (or the same except with the comment more indented), the indentation before the comment increases by 4 spaces:
<?xml version="1.0" encoding="utf-8"?>
<element>
text
<!-- comment -->
</element>
Notably, as well as persisting with other extensions disabled, this persists while there are no workspace settings set and while all editor.* user settings are commented out in my user settings.json.
The problem ceases when I set editor.formatOnSave to false, or when I set editor.defaultFormatter for XML to any installed extension's ID other than DotJoshJohnson.xml.
Formatter Implementation
Which XML Formatter implementation are you using (the value of your xmlTools.xmlFormatterImplementation setting).
v2
Description
What seems to be the problem?
Even with every extension disabled except XML Tools, every time I save a file with this content (or the same except with the comment more indented), the indentation before the comment increases by 4 spaces:
Possibly relevant user settings:
Notably, as well as persisting with other extensions disabled, this persists while there are no workspace settings set and while all
editor.*
user settings are commented out in my usersettings.json
.The problem ceases when I set
editor.formatOnSave
tofalse
, or when I seteditor.defaultFormatter
for XML to any installed extension's ID other thanDotJoshJohnson.xml
.Formatter Implementation
Which XML Formatter implementation are you using (the value of your
xmlTools.xmlFormatterImplementation
setting).v2
XML Tools Version
What version of XML Tools are you using?
v2.5.1
VS Code Version
What version of VS Code are you using?
Version: 1.59.1
Operating System
What OS (and version) are you using?
macOS Catalina Version: 10.15.7