Skip to content

trailingWhitespace: true not honored when editor.formatOnSaveMode: modifications #682

@Geokureli

Description

@Geokureli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions