<p dir="auto">Show syntax error while open all es6 files in folder 'node_modules' and it's subfolders, and reopen the file, will show repeatedly syntax error in multilines.</p>
<p dir="auto">open the es6 project:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12825770/11888441/91b6ae54-a578-11e5-8d3d-d7e2b1550e98.GIF"><img src="https://cloud.githubusercontent.com/assets/12825770/11888441/91b6ae54-a578-11e5-8d3d-d7e2b1550e98.GIF" alt="1" data-animated-image="" style="max-width: 100%;"></a><br>
open es6 file in root folder, no syntax error:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12825770/11888442/91dde730-a578-11e5-8545-207daa8a6c2e.GIF"><img src="https://cloud.githubusercontent.com/assets/12825770/11888442/91dde730-a578-11e5-8545-207daa8a6c2e.GIF" alt="2" data-animated-image="" style="max-width: 100%;"></a><br>
but, open the es6 file in folder 'node_modules', will show  syntax error:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12825770/11888445/91f47298-a578-11e5-8e98-fcd33c961c77.GIF"><img src="https://cloud.githubusercontent.com/assets/12825770/11888445/91f47298-a578-11e5-8e98-fcd33c961c77.GIF" alt="3" data-animated-image="" style="max-width: 100%;"></a><br>
text of  syntax error:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12825770/11888446/91f6dac4-a578-11e5-84c3-3374070c9f29.GIF"><img src="https://cloud.githubusercontent.com/assets/12825770/11888446/91f6dac4-a578-11e5-84c3-3374070c9f29.GIF" alt="4" data-animated-image="" style="max-width: 100%;"></a><br>
show same error while open es6 file in subfolder of  'node_modules':<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12825770/11888444/91f3cc94-a578-11e5-85fa-41b15681329a.GIF"><img src="https://cloud.githubusercontent.com/assets/12825770/11888444/91f3cc94-a578-11e5-85fa-41b15681329a.GIF" alt="5" data-animated-image="" style="max-width: 100%;"></a><br>
open others not in folder 'node_modules',  no syntax error:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12825770/11888447/91f91960-a578-11e5-8bd3-3ef885870baf.GIF"><img src="https://cloud.githubusercontent.com/assets/12825770/11888447/91f91960-a578-11e5-8bd3-3ef885870baf.GIF" alt="6" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">and, will show repeatedly syntax error in multilines while reopen the es6 file which has syntax error:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12825770/11888443/91ef39a4-a578-11e5-9833-e85635d4ef1d.GIF"><img src="https://cloud.githubusercontent.com/assets/12825770/11888443/91ef39a4-a578-11e5-9833-e85635d4ef1d.GIF" alt="7" data-animated-image="" style="max-width: 100%;"></a><br>
repoen repeatedly:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12825770/11888448/9217c086-a578-11e5-9983-a74781c50a00.GIF"><img src="https://cloud.githubusercontent.com/assets/12825770/11888448/9217c086-a578-11e5-9983-a74781c50a00.GIF" alt="8" data-animated-image="" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12825770/11888449/921ec390-a578-11e5-82bf-a13588d5b327.GIF"><img src="https://cloud.githubusercontent.com/assets/12825770/11888449/921ec390-a578-11e5-82bf-a13588d5b327.GIF" alt="9" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Hi.</p>
<p dir="auto">Thanks for your product, I really enjoy using it. However I have one problem:<br>
When using ES6 features, like the arrow functions, I get the message "This can only be used with ES6. Make sure to have a jsconfig.json-file which sets the target to ES6".</p>
<p dir="auto">However I have a <code class="notranslate">jsconfig.json</code>-file in my root (the folder opened in Visual Studio Code), which contains:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
    &quot;compilerOptions&quot;: {
        &quot;target&quot;: &quot;ES6&quot;,
        &quot;module&quot;: &quot;commonjs&quot;
    }
}"><pre class="notranslate">{
    <span class="pl-ent">"compilerOptions"</span>: {
        <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>ES6<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>commonjs<span class="pl-pds">"</span></span>
    }
}</pre></div>
<p dir="auto">The weird part is that I get it for some files, and not for others. Even if the files are in the same directory. Right now I have three files in the subdirectory <code class="notranslate">/app/bpm</code> names <code class="notranslate">bpm.js</code>, <code class="notranslate">bpmController.js</code> and <code class="notranslate">enterClick.js</code>. All three are written with ES6-functionality, but I only get the warning and red underlined text for <code class="notranslate">bpm.js</code>.</p>
<p dir="auto">UPDATE:<br>
I just restarted VS Code, and the red underline disappeared from <code class="notranslate">bpm.js</code> too. It was a new file I had created after the two others, however the red underline only went away after a restart.</p>