@@ -252,7 +252,7 @@ export class URI implements UriComponents {
252252 return this ;
253253 }
254254
255- return new CachingURI ( scheme , authority , path , query , fragment ) ;
255+ return new Uri ( scheme , authority , path , query , fragment ) ;
256256 }
257257
258258 // ---- parse & validate ------------------------
@@ -266,9 +266,9 @@ export class URI implements UriComponents {
266266 static parse ( value : string , _strict : boolean = false ) : URI {
267267 const match = _regexp . exec ( value ) ;
268268 if ( ! match ) {
269- return new CachingURI ( _empty , _empty , _empty , _empty , _empty ) ;
269+ return new Uri ( _empty , _empty , _empty , _empty , _empty ) ;
270270 }
271- return new CachingURI (
271+ return new Uri (
272272 match [ 2 ] || _empty ,
273273 percentDecode ( match [ 4 ] || _empty ) ,
274274 percentDecode ( match [ 5 ] || _empty ) ,
@@ -323,11 +323,11 @@ export class URI implements UriComponents {
323323 }
324324 }
325325
326- return new CachingURI ( 'file' , authority , path , _empty , _empty ) ;
326+ return new Uri ( 'file' , authority , path , _empty , _empty ) ;
327327 }
328328
329329 static from ( components : { scheme : string ; authority ?: string ; path ?: string ; query ?: string ; fragment ?: string } ) : URI {
330- return new CachingURI (
330+ return new Uri (
331331 components . scheme ,
332332 components . authority ,
333333 components . path ,
@@ -387,7 +387,7 @@ export class URI implements UriComponents {
387387 } else if ( data instanceof URI ) {
388388 return data ;
389389 } else {
390- const result = new CachingURI ( data ) ;
390+ const result = new Uri ( data ) ;
391391 result . _formatted = ( < UriState > data ) . external ;
392392 result . _fsPath = ( < UriState > data ) . _sep === _pathSepMarker ? ( < UriState > data ) . fsPath : null ;
393393 return result ;
@@ -413,7 +413,7 @@ interface UriState extends UriComponents {
413413const _pathSepMarker = isWindows ? 1 : undefined ;
414414
415415// This class exists so that URI is compatibile with vscode.Uri (API).
416- class CachingURI extends URI {
416+ class Uri extends URI {
417417
418418 _formatted : string | null = null ;
419419 _fsPath : string | null = null ;
0 commit comments