Debug events: sessionId should live one level up from the body

fixes #31391
This commit is contained in:
isidor
2017-08-03 16:57:34 +02:00
parent 064efc9765
commit efbc898dc6
5 changed files with 24 additions and 24 deletions

View File

@@ -34,9 +34,9 @@ export class MainThreadDebugService extends MainThreadDebugServiceShape {
}
}));
this._toDispose.push(debugService.onDidCustomEvent(event => {
if (event.body && event.body.sessionId) {
const process = this.debugService.findProcessByUUID(event.body.sessionId); // TODO
this._proxy.$acceptDebugSessionCustomEvent(event.body.sessionId, process.configuration.type, process.configuration.name, event);
if (event && event.sessionId) {
const process = this.debugService.findProcessByUUID(event.sessionId);
this._proxy.$acceptDebugSessionCustomEvent(event.sessionId, process.configuration.type, process.configuration.name, event);
}
}));
}