<p dir="auto">I have a javascript node project with some TypeScript definition files inside it. My jsconfig.json is as follows:<br>
{<br>
"compilerOptions": {<br>
"target": "ES6",<br>
"module": "commonjs"<br>
}<br>
}</p>
<p dir="auto">If I rename a javascript source file to temp_hello.js or even temple.js (imagine if temples were in my business domain!) then the intellisense stops working for the file (it does not pick up anything in the typescript definition files) and it also forgets my jsconfig.json settings. That means I can't use ES6 syntax anymore!</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>