<p dir="auto"><strong>TypeScript Version:</strong> 1.8.0-beta</p>
<p dir="auto">VS Code's Javascript Salsa language service seems to break down as soon as I type a dynamic require into the buffer. I lose all language features: intellisense, mark occurrences, etc. I can only get out of that state by reloading Code's window.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="require('' + '');"><pre class="notranslate"><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">''</span> <span class="pl-c1">+</span> <span class="pl-s">''</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/22350/13171194/b87f0ff4-d6f1-11e5-9da7-7213791dfbd6.gif"><img src="https://cloud.githubusercontent.com/assets/22350/13171194/b87f0ff4-d6f1-11e5-9da7-7213791dfbd6.gif" alt="bug2" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">So I was googling and asking on StackOverflow. For now no clear answer. So decided to ask here as for me it is a blocker.</p>
<p dir="auto">How can use the newest methods for existing JS types (like Array, Number)?</p>
<p dir="auto"><code class="notranslate">Array.from(someIterable)</code> throws an error: <code class="notranslate">error TS2339: Property 'from' does not exist on type 'ArrayConstructor'</code></p>
<p dir="auto">I would appreciate any tip, how to make it work.</p>