You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This issue was previously discussed in #31
The problem is that the proposed workaround of using
"files.insertFinalNewline": true
only works when sorting a file usingYAML Sort: Sort YAML
or one of theYAML Sort: Custom sort
options. It does not work with theYAML 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 bygit
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.
The text was updated successfully, but these errors were encountered: