File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*---------------------------------------------------------
2
2
* Copyright (C) Microsoft Corporation. All rights reserved.
3
3
*--------------------------------------------------------*/
4
-
5
4
import * as os from 'os' ;
6
5
import * as fs from 'fs' ;
7
6
import * as path from 'path' ;
@@ -160,6 +159,12 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
160
159
cliCommand . tnsProcess . stderr . on ( 'data' , data => { Services . logger ( ) . error ( data . toString ( ) , Tags . FrontendMessage ) ; } ) ;
161
160
cliCommand . tnsProcess . on ( 'close' , ( code , signal ) => {
162
161
Services . logger ( ) . error ( `[NSDebugAdapter] The tns command finished its execution with code ${ code } .` , Tags . FrontendMessage ) ;
162
+
163
+ // Sometimes we execute "tns debug android --start" and the process finishes
164
+ // which is totally fine. If there's an error we need to Terminate the session.
165
+ if ( code > 0 ) {
166
+ this . fireEvent ( new TerminatedEvent ( ) ) ;
167
+ }
163
168
} ) ;
164
169
}
165
170
You can’t perform that action at this time.
0 commit comments