@@ -40,7 +40,7 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
4040 private _webKitConnection : INSDebugConnection ;
4141 private _eventHandler : ( event : DebugProtocol . Event ) => void ;
4242 private _lastOutputEvent : OutputEvent ;
43- private _loggerFrontendHandler : LoggerHandler = args => this . fireEvent ( new OutputEvent ( `${ args . message } \n ` , args . type . toString ( ) ) ) ;
43+ private _loggerFrontendHandler : LoggerHandler = args => this . fireEvent ( new OutputEvent ( `${ args . message } ` , args . type . toString ( ) ) ) ;
4444 private _request : DebugRequest ;
4545 private _tnsProcess : ChildProcess ;
4646
@@ -143,8 +143,8 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
143143 Services . extensionClient ( ) . analyticsLaunchDebugger ( { request : args . request , platform : args . platform } ) ;
144144
145145 // Run CLI Command
146- Services . logger ( ) . log ( `[NSDebugAdapter] Using tns CLI v${ this . _request . project . cli . version . version } on path '${ this . _request . project . cli . path } '` , Tags . FrontendMessage ) ;
147- Services . logger ( ) . log ( '[NSDebugAdapter] Running tns command...' , Tags . FrontendMessage ) ;
146+ Services . logger ( ) . log ( `[NSDebugAdapter] Using tns CLI v${ this . _request . project . cli . version . version } on path '${ this . _request . project . cli . path } '\n ` , Tags . FrontendMessage ) ;
147+ Services . logger ( ) . log ( '[NSDebugAdapter] Running tns command...\n ' , Tags . FrontendMessage ) ;
148148 let cliCommand : DebugResult ;
149149 if ( this . _request . isLaunch ) {
150150 let tnsArgs = this . _request . args . tnsArgs ;
@@ -173,7 +173,7 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
173173 cliCommand . tnsProcess . stdout . on ( 'data' , data => { Services . logger ( ) . log ( data . toString ( ) , Tags . FrontendMessage ) ; } ) ;
174174 cliCommand . tnsProcess . stderr . on ( 'data' , data => { Services . logger ( ) . error ( data . toString ( ) , Tags . FrontendMessage ) ; } ) ;
175175 cliCommand . tnsProcess . on ( 'close' , ( code , signal ) => {
176- Services . logger ( ) . error ( `[NSDebugAdapter] The tns command finished its execution with code ${ code } .` , Tags . FrontendMessage ) ;
176+ Services . logger ( ) . error ( `[NSDebugAdapter] The tns command finished its execution with code ${ code } .\n ` , Tags . FrontendMessage ) ;
177177
178178 // Sometimes we execute "tns debug android --start" and the process finishes
179179 // which is totally fine. If there's an error we need to Terminate the session.
@@ -185,18 +185,18 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
185185
186186 let promiseResolve = null ;
187187 let promise : Promise < void > = new Promise < void > ( ( res , rej ) => { promiseResolve = res ; } ) ;
188- Services . logger ( ) . log ( '[NSDebugAdapter] Watching the tns CLI output to receive a connection token' , Tags . FrontendMessage ) ;
188+ Services . logger ( ) . log ( '[NSDebugAdapter] Watching the tns CLI output to receive a connection token\n ' , Tags . FrontendMessage ) ;
189189 // Attach to the running application
190190 cliCommand . tnsOutputEventEmitter . on ( 'readyForConnection' , ( connectionToken : string | number ) => {
191- Services . logger ( ) . log ( `[NSDebugAdapter] Ready to attach to application on ${ connectionToken } ` , Tags . FrontendMessage ) ;
191+ Services . logger ( ) . log ( `[NSDebugAdapter] Ready to attach to application on ${ connectionToken } \n ` , Tags . FrontendMessage ) ;
192192 let connection : INSDebugConnection = this . _request . isAndroid ? new AndroidConnection ( ) : new IosConnection ( ) ;
193193
194194 connection . attach ( connectionToken , 'localhost' ) . then ( ( ) => {
195- Services . logger ( ) . log ( `[NSDebugAdapter] Connection to target application established on ${ connectionToken } ` , Tags . FrontendMessage ) ;
195+ Services . logger ( ) . log ( `[NSDebugAdapter] Connection to target application established on ${ connectionToken } \n ` , Tags . FrontendMessage ) ;
196196 this . setConnection ( connection ) ;
197197 return connection . enable ( ) ;
198198 } ) . then ( ( ) => {
199- Services . logger ( ) . log ( `[NSDebugAdapter] Connection to target application successfully enabled` , Tags . FrontendMessage ) ;
199+ Services . logger ( ) . log ( `[NSDebugAdapter] Connection to target application successfully enabled\n ` , Tags . FrontendMessage ) ;
200200 this . fireEvent ( new InitializedEvent ( ) ) ;
201201 promiseResolve ( ) ;
202202 } ) . then ( ( ) => { } ) ;
0 commit comments