vscode-yaml-sort icon indicating copy to clipboard operation
vscode-yaml-sort copied to clipboard

Newline at end of file

Open sherif-fanous opened this issue 1 year ago • 0 comments

This issue was previously discussed in https://github.com/pascalre/vscode-yaml-sort/issues/31

The problem is that the proposed workaround of using "files.insertFinalNewline": true only works when sorting a file using YAML Sort: Sort YAML or one of the YAML Sort: Custom sort options. It does not work with the YAML Sort: Recursively sort all files options.

As a result using YAML Sort: Recursively sort all files leads to a large number of files being flagged as modified by git due to the newline at the end of the file being trimmed.

It would be really useful to have an option to retain the newline.

sherif-fanous avatar Jan 22 '24 03:01 sherif-fanous