<p dir="auto">We have some actions that result in new files being created in the workspace. We should respect the auto save setting and only save the file to disk if auto save is enabled. Otherwise we can open the file dirty until saved.</p>
<p dir="auto"><strong>Old summary</strong></p>
<ul dir="auto">
<li>Have <code class="notranslate">"files.autoSave": "afterDelay"</code> in your settings</li>
<li>Open code on a new folder</li>
<li>Create a <code class="notranslate">hello.js</code> file and open it</li>
<li>Wait for the (ugly) green lightbulb in the bottom right corner to appear; click it and choose to create a <code class="notranslate">jsconfig.json</code> file.</li>
</ul>
<p dir="auto">The newly created <code class="notranslate">jsconfig.json</code> file will not be automatically saved. It will instead display the unsaved icon and wait for me to save it.</p>
<p dir="auto">Issue Id: <b>9d49987e-1058-1c47-d977-23b53a6f81d2</b><br><br><em>Versions</em> <br>- 1.0.0-insider<br>-  <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/fa6d0f03813dfb9df4589c30121e9fcffa8a8ec8/hovercard" href="https://github.com/microsoft/vscode/commit/fa6d0f03813dfb9df4589c30121e9fcffa8a8ec8"><tt>fa6d0f0</tt></a><br><em>Stack</em> <br>Error: Illegal value 31 for <code class="notranslate">line</code><br>    at t.lineAt (\out\vs\workbench\node\pluginHostProcess.js:18:29390) <br>    at Object.t.lineAt (\out\vs\workbench\node\pluginHostProcess.js:18:28204) <br>    at TrailingSpaces.matchTrailingSpaces (\shardulm94.trailing-spaces-0.2.8\out\src\trailing-spaces\trailing-spaces.js:150:95) <br>    at \shardulm94.trailing-spaces-0.2.8\out\src\trailing-spaces\trailing-spaces.js:59:23 <br>    at e.invoke (\out\vs\workbench\node\pluginHostProcess.js:7:14035) <br>    at e.fire (\out\vs\workbench\node\pluginHostProcess.js:7:15488) <br>    at e._acceptSelectionsChanged (\out\vs\workbench\node\pluginHostProcess.js:19:7900) <br>    at t.e.handle (\out\vs\workbench\node\pluginHostProcess.js:15:12835) <br>    at c (\out\vs\workbench\node\pluginHostProcess.js:11:16222) <br>    at h (\out\vs\workbench\node\pluginHostProcess.js:11:16882) <br></p>