<ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: OS X 10.11.5</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Open a file and change the language and/or indentation type.</li>
<li>Close the window.</li>
<li>Reopen the window.</li>
</ol>
<p dir="auto">The file will be loaded again but it will have the default language and indentation type.</p>
<p dir="auto">i have yaml in .controller, .asset etc files</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="%YAML 1.1
%TAG !u! tag:unity3d.com,2011:"><pre class="notranslate"><code class="notranslate">%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
</code></pre></div>
<p dir="auto">when i open the file it does not detect it is yaml and sets it to plain text mode?<br>
i can choose yaml from the language mode selector (to get nice coloring) but then i get an error on that first yaml 1.1 line</p>
<p dir="auto">Expected a JSON object, array or literal<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/962340/13452325/c4833196-e014-11e5-952a-cbdbe6b6cb97.png"><img src="https://cloud.githubusercontent.com/assets/962340/13452325/c4833196-e014-11e5-952a-cbdbe6b6cb97.png" alt="untitled" style="max-width: 100%;"></a></p>
<ol dir="auto">
<li>should it auto detect? or is there a way to associate files with languages? (no, see link below)</li>
<li>how to fix error?</li>
</ol>
<p dir="auto">thanks</p>
<p dir="auto"><a href="https://code.visualstudio.com/docs/languages/overview" rel="nofollow">https://code.visualstudio.com/docs/languages/overview</a><br>
Q: Can I map additional file extensions to a language?<br>
A: Currently this is not supported but it's on the way.</p>