debug API: add onDidStartDebugSession

This commit is contained in:
Andre Weinand
2017-07-18 00:18:27 +02:00
parent 81813b2ca4
commit 254c8c5b0b
8 changed files with 42 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ export class MainThreadDebugService extends MainThreadDebugServiceShape {
this._proxy = threadService.get(ExtHostContext.ExtHostDebugService);
this._toDispose = [];
this._toDispose.push(debugService.onDidNewProcess(proc => this._proxy.$acceptDebugSessionStarted(<DebugSessionUUID>proc.getId(), proc.configuration.type, proc.name)));
this._toDispose.push(debugService.onDidEndProcess(proc => this._proxy.$acceptDebugSessionTerminated(<DebugSessionUUID>proc.getId(), proc.configuration.type, proc.name)));
this._toDispose.push(debugService.getViewModel().onDidFocusProcess(proc => {
if (proc) {