<ul dir="auto">
<li>VSCode Version: Feb release + March Insiders</li>
<li>OS Version: Mac OS X Yosemite</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Enter the following code</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="it('Hello', () =&gt; {

});"><pre class="notranslate"><code class="notranslate">it('Hello', () =&gt; {

});
</code></pre></div>
<ol start="2" dir="auto">
<li>Put your cursor after Hello but within the string and type comma then space, the intellisense will kick in (even though you are inside a string literal)</li>
</ol>
<p dir="auto">I'm trying to fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118952199" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode-go/issues/103" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode-go/issues/103/hovercard" href="https://github.com/microsoft/vscode-go/issues/103">microsoft/vscode-go#103</a>, but as far as I can tell this isn't possible currently without tokenizing the whole file again in my extension and manually checking whether I'm in a comment to suprress providing results.</p>
<p dir="auto">It would be nice if the <code class="notranslate">CompletionItemProvider</code> provided a setting to suppress it's results when in certain tokens/scopes.</p>
<p dir="auto">The implementation of the <a href="https://github.com/Microsoft/vscode/blob/497788c0bcd20859f736d585b49c208af8dd518f/extensions/typescript/src/features/completionItemProvider.ts#L62">TypeScript completion provider</a> has an <code class="notranslate">excludeTokens</code> which seems to play this role but I can't get that to work in my own extension.</p>