@@ -48,27 +48,27 @@ export class RemoteAuthorityResolverChannelClient implements IRemoteAuthorityRes
4848
4949 _serviceBrand : any ;
5050
51- private _resolveAuthorityCache : { [ authority : string ] : TPromise < ResolvedAuthority > ; } ;
51+ private _resolveAuthorityCache : { [ authority : string ] : Thenable < ResolvedAuthority > ; } ;
5252 get onResolvingProgress ( ) : Event < IResolvingProgressEvent > { return buffer ( this . channel . listen ( 'onResolvingProgress' ) , true ) ; }
5353
5454 constructor ( private channel : IRemoteAuthorityResolverChannel ) {
5555 this . _resolveAuthorityCache = Object . create ( null ) ;
5656 }
5757
58- resolveAuthority ( authority : string ) : TPromise < ResolvedAuthority > {
58+ resolveAuthority ( authority : string ) : Thenable < ResolvedAuthority > {
5959 if ( ! this . _resolveAuthorityCache [ authority ] ) {
6060 this . _resolveAuthorityCache [ authority ] = this . _resolveAuthority ( authority ) ;
6161 }
6262 return this . _resolveAuthorityCache [ authority ] ;
6363 }
6464
65- getLabel ( authority : string ) : TPromise < string | null > {
65+ getLabel ( authority : string ) : Thenable < string | null > {
6666 return this . channel . call ( 'getLabel' , [ authority ] ) ;
6767 }
6868
69- private _resolveAuthority ( authority : string ) : TPromise < ResolvedAuthority > {
69+ private _resolveAuthority ( authority : string ) : Thenable < ResolvedAuthority > {
7070 if ( authority . indexOf ( '+' ) >= 0 ) {
71- return TPromise . wrap ( this . channel . call ( 'resolveAuthority' , [ authority ] ) ) ;
71+ return this . channel . call ( 'resolveAuthority' , [ authority ] ) ;
7272 } else {
7373 const [ host , strPort ] = authority . split ( ':' ) ;
7474 const port = parseInt ( strPort , 10 ) ;
0 commit comments