@@ -40,7 +40,7 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
40
40
private _webKitConnection : INSDebugConnection ;
41
41
private _eventHandler : ( event : DebugProtocol . Event ) => void ;
42
42
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 ( ) ) ) ;
44
44
private _request : DebugRequest ;
45
45
private _tnsProcess : ChildProcess ;
46
46
@@ -143,8 +143,8 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
143
143
Services . extensionClient ( ) . analyticsLaunchDebugger ( { request : args . request , platform : args . platform } ) ;
144
144
145
145
// 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 ) ;
148
148
let cliCommand : DebugResult ;
149
149
if ( this . _request . isLaunch ) {
150
150
let tnsArgs = this . _request . args . tnsArgs ;
@@ -173,7 +173,7 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
173
173
cliCommand . tnsProcess . stdout . on ( 'data' , data => { Services . logger ( ) . log ( data . toString ( ) , Tags . FrontendMessage ) ; } ) ;
174
174
cliCommand . tnsProcess . stderr . on ( 'data' , data => { Services . logger ( ) . error ( data . toString ( ) , Tags . FrontendMessage ) ; } ) ;
175
175
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 ) ;
177
177
178
178
// Sometimes we execute "tns debug android --start" and the process finishes
179
179
// 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 {
185
185
186
186
let promiseResolve = null ;
187
187
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 ) ;
189
189
// Attach to the running application
190
190
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 ) ;
192
192
let connection : INSDebugConnection = this . _request . isAndroid ? new AndroidConnection ( ) : new IosConnection ( ) ;
193
193
194
194
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 ) ;
196
196
this . setConnection ( connection ) ;
197
197
return connection . enable ( ) ;
198
198
} ) . 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 ) ;
200
200
this . fireEvent ( new InitializedEvent ( ) ) ;
201
201
promiseResolve ( ) ;
202
202
} ) . then ( ( ) => { } ) ;
0 commit comments