[refmt] Add or at least preserve end of file newline
It's common practice to have files ending in newlines, if only to keep git from telling us "\ No newline at end of file" for every diff. A newline at the end of the file also makes it easier to append things to a file without manually going to the end of the last line and inserting a newline.
I feel like refmt should add the newline to the end of the file when printing it or at least preserve a newline if it's there. Currently it's constantly removing trailing newlines which is quite a nuisance.
Friendly ping! It'd be great to not default to trimming the newline, which can cause ugly git diffs.
I think this isn't a refmt problem, but a problem on rls, https://github.com/jaredly/reason-language-server/pull/424
Can confirm rls from master branch fix this issue, it can be closed.