<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Thaina/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Thaina">@Thaina</a> on March 22, 2016 3:42</em></p>
<p dir="auto">Please allow <code class="notranslate">/// &lt;reference&gt;</code> to support online file</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1042507/13941487/a264e602-f01a-11e5-95ef-3ee17b34855a.png"><img src="https://cloud.githubusercontent.com/assets/1042507/13941487/a264e602-f01a-11e5-95ef-3ee17b34855a.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="142539201" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/4539" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/4539/hovercard" href="https://github.com/microsoft/vscode/issues/4539">microsoft/vscode#4539</a></em></p>
<p dir="auto">Creating TypeScript files using build/runtime environments, like Node, Gulp, etc., I regularly find myself referencing public repositories.</p>
<p dir="auto">Currently it looks like the <code class="notranslate">/// &lt;reference path="" /&gt;</code> syntax only allows for referencing local files (at least I couldn't find any information of IRIs being supported, and <code class="notranslate">TSC</code> claims File not Found error when using a DefinitelyTyped URL).</p>
<p dir="auto">But this results in a requirement to deliver <code class="notranslate">.d.ts</code> files of public repositories along with the project and to keep their relative position in sync with locally generated <code class="notranslate">.d.ts</code> files. (See <a href="https://github.com/SetTrend/TS18N">SetTrend/TS18N</a> failing project for reference).</p>
<p dir="auto">So I propose to allow to use IRIs for reference:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/node/node.d.ts&quot; /&gt;"><pre class="notranslate">/// <span class="pl-kos">&lt;</span><span class="pl-ent">reference</span> <span class="pl-c1">path</span>="<span class="pl-s">https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/node/node.d.ts</span>" /&gt;</pre></div>