debugService: onWillNewSession

This commit is contained in:
isidor
2018-08-31 11:55:19 +02:00
parent e055c6ef94
commit d97f06a1e2
4 changed files with 18 additions and 4 deletions

View File

@@ -35,13 +35,11 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
) {
this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostDebugService);
this._toDispose = [];
this._toDispose.push(debugService.onDidNewSession(session => {
this._toDispose.push(debugService.onWillNewSession(session => {
this._proxy.$acceptDebugSessionStarted(<DebugSessionUUID>session.getId(), session.configuration.type, session.getName(false));
this._toDispose.push(session.onDidCustomEvent(event => {
if (event && event.sessionId) {
if (process) {
this._proxy.$acceptDebugSessionCustomEvent(event.sessionId, session.configuration.type, session.configuration.name, event);
}
this._proxy.$acceptDebugSessionCustomEvent(event.sessionId, session.configuration.type, session.configuration.name, event);
}
}));
}));