Skip to content

Commit 561c3b1

Browse files
author
Yosif Yosifov
committed
When the TNS process is finished - terminate the debugger process, too.
1 parent da67d99 commit 561c3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug-adapter/webKitDebugAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*---------------------------------------------------------
22
* Copyright (C) Microsoft Corporation. All rights reserved.
33
*--------------------------------------------------------*/
4-
54
import * as os from 'os';
65
import * as fs from 'fs';
76
import * as path from 'path';
@@ -160,6 +159,7 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
160159
cliCommand.tnsProcess.stderr.on('data', data => { Services.logger().error(data.toString(), Tags.FrontendMessage); });
161160
cliCommand.tnsProcess.on('close', (code, signal) => {
162161
Services.logger().error(`[NSDebugAdapter] The tns command finished its execution with code ${code}.`, Tags.FrontendMessage);
162+
this.fireEvent(new TerminatedEvent());
163163
});
164164
}
165165

0 commit comments

Comments
 (0)