@@ -77,15 +77,15 @@ export class NativeScriptDebugAdapter extends ChromeDebugAdapter {
7777 let timeoutId ;
7878
7979 if ( ! this . isDisconnecting && this . isLiveSync ) {
80- const portProm = new Promise < any > ( ( res , rej ) => {
80+ const portProm = new Promise < void > ( ( res , rej ) => {
8181 this . portWaitingResolve = res ;
8282
8383 timeoutId = setTimeout ( ( ) => {
84- res ( null ) ;
84+ res ( ) ;
8585 } , reconnectAfterLiveSyncTimeout ) ;
8686 } ) ;
8787
88- restartRequestArgs = await portProm ;
88+ restartRequestArgs = await portProm as any ;
8989 this . isLiveSyncRestart = restartRequestArgs && ! ! restartRequestArgs . port ;
9090 clearTimeout ( timeoutId ) ;
9191 }
@@ -148,7 +148,7 @@ export class NativeScriptDebugAdapter extends ChromeDebugAdapter {
148148 ( ChromeDebugAdapter as any ) . SET_BREAKPOINTS_TIMEOUT = 20000 ;
149149
150150 this . isLiveSync = args . watch ;
151- transformedArgs . address = this . convertIosLoopbackAddress ( transformedArgs . address , args . platform . toLowerCase ( ) ) ;
151+ transformedArgs . address = this . applyLoopbackAddress ( transformedArgs . address , args . platform . toLowerCase ( ) ) ;
152152
153153 return super . attach ( transformedArgs ) ;
154154 }
@@ -269,7 +269,7 @@ export class NativeScriptDebugAdapter extends ChromeDebugAdapter {
269269 } ) ;
270270 }
271271
272- private convertIosLoopbackAddress ( address : string , platform : string ) {
272+ private applyLoopbackAddress ( address : string , platform : string ) {
273273 if ( address === undefined && platform === "ios" ) {
274274 // If it is undefined it will use 127.0.0.1 and will fail on iOS
275275 return "localhost" ;
0 commit comments