vscode-yaml-sort
vscode-yaml-sort copied to clipboard
Newline at end of file
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.