With the following in .vscode/settings.json:
"[haxe]": {
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modifications"
}
...and the following in hxformat.json
"indentation":{
"trailingWhitespace": true
}
...Haxe-Formatter will automatically remove trailing whitespace in all modified lines, if I remove "editor.formatOnSaveMode": "modifications" trailing whitespace is then allowed. This is the case whether I add trailing whitespace to existing empty lines or add entirely new empty lines with trailing whitespace