654
* Create the external version of a uri
655
*/
656
>
function _asFormatted(uri: URI, skipEncoding: boolean): string {
uri.ts
657
>
658
>
const encoder = !skipEncoding
659
? encodeURIComponentFast
660
: encodeURIComponentMinimal;
662
>
let res = '';
663
>
let { scheme, authority, path, query, fragment } = uri;
664
>
if (scheme) {
665
>
res += scheme;
666
>
res += ':';
667
>
}
668
>
if (authority || scheme === 'file') {
669
res += _slash;
670
res += _slash;
671
}
673
let idx = authority.indexOf('@');
674
if (idx !== -1) {