<ul dir="auto">
<li>VSCode Version: 0.10.12-alpha</li>
<li>OS Version: OSX<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="140217085" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/4022" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/4022/hovercard" href="https://github.com/microsoft/vscode/issues/4022">#4022</a></li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>open a new file, add a workspace setting to enable javascript validation <code class="notranslate">"javascript.validate.enable": false</code></li>
<li>in the file type:</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var str = &quot;qrqweqwewqe&quot;; 
str.test(); "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s">"qrqweqwewqe"</span><span class="pl-kos">;</span> 
<span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </pre></div>
<p dir="auto">Expected: error under test since test method is not defined on a string.</p>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="129227097" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6658" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6658/hovercard" href="https://github.com/microsoft/TypeScript/issues/6658">#6658</a> for background.</p>
<p dir="auto">Currently for JavaScript files we provide a very limited set of errors, mostly for syntax errors. There are a number of grammatical and type errors that would be useful to display also.</p>
<p dir="auto">Brief notes from ad hoc discussion in the team room include:</p>
<ul dir="auto">
<li>Move the code that flags TypeScript syntax in JavaScript files for better error handling</li>
<li>Add a distinction between errors and warnings to avoid "valid" JavaScript containing errors</li>
<li>Make the warnings user configurable as part of the project (i.e. may enable/disable certain warnings)</li>
</ul>
<p dir="auto">More detailed design to come...</p>