Prevent VSCode auto format on save from removing final newline
<p>I am using the last feature of VSCode called <a href="https://code.visualstudio.com/updates#_format-on-save" rel="noreferrer">formatOnSave</a>, which is super cool.<br>
I have one tiny problem, the formatter tends to delete the new line at the end of <code>json</code> files like <code>packages.json</code> for example.  </p>

<p>My linter want those new lines at the end of the file, and me too.  </p>

<p>Is there a setting or a method that allows me to tell the formatter to keep new lines at the end of files?</p>

<p>Related issue: </p>

<ul>
<li><a href="https://github.com/Microsoft/vscode/issues/1666" rel="noreferrer">Provide an option to insert a final newline #1666</a></li>
<li><a href="https://github.com/Microsoft/vscode/issues/12076" rel="noreferrer">Add "new line at end of file" option #12076</a></li>
</ul>