<p dir="auto">No nodejs intellisense after latest upgrade 0.10.10  on mac. Also, tab is behaving wrongly. (All extensions removed)</p>
<p dir="auto">Extracted from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="136750039" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3509" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3509/hovercard" href="https://github.com/microsoft/vscode/issues/3509">microsoft/vscode#3509</a>.</p>
<p dir="auto">According to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="130525752" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6807" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6807/hovercard" href="https://github.com/microsoft/TypeScript/issues/6807">#6807</a> the default for module type is <code class="notranslate">commonjs</code>. However, in this example without a jsconfig.json then there are no completion proposals:</p>
<ul dir="auto">
<li>no <code class="notranslate">jsconfig.json</code></li>
<li>add a file bar.js:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="exports.foo = 3;"><pre class="notranslate"><code class="notranslate">exports.foo = 3;
</code></pre></div>
<ul dir="auto">
<li>add app.js add the following:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var bar = require('./bar');
bar."><pre class="notranslate"><code class="notranslate">var bar = require('./bar');
bar.
</code></pre></div>
<p dir="auto">There a no completions on <code class="notranslate">bar.</code></p>
<p dir="auto">The work around is to add a <code class="notranslate">jsconfig.json</code> that defines the module type to commonjs:</p>
<p dir="auto"><code class="notranslate">jsconfig.json</code></p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
    &quot;compilerOptions&quot;: {
        &quot;module&quot;: &quot;commonjs&quot;
    }
}"><pre class="notranslate">{
    <span class="pl-ent">"compilerOptions"</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>