debug: sessionOnly breakpoint event and propering toJSON for breakpoints

This commit is contained in:
isidor
2018-06-07 15:17:06 +02:00
parent 57d7e6fc3d
commit cf10e47b42
4 changed files with 94 additions and 12 deletions

View File

@@ -94,7 +94,8 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
// set up a handler to send more
this._toDispose.push(this.debugService.getModel().onDidChangeBreakpoints(e => {
if (e) {
// Ignore session only breakpoint events since they should only reflect in the UI
if (e && !e.sessionOnly) {
const delta: IBreakpointsDeltaDto = {};
if (e.added) {
delta.added = this.convertToDto(e.added);