Skip to content

Commit

Permalink
debug: auto remove duplicate breakpoints
Browse files Browse the repository at this point in the history
fixes #25389
  • Loading branch information
isidorn committed May 9, 2017
1 parent 68237f2 commit 8d4d6e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/parts/debug/common/debugModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ export class Model implements IModel {
this.breakpoints = this.breakpoints.concat(rawData.map(rawBp =>
new Breakpoint(uri, rawBp.lineNumber, rawBp.column, rawBp.enabled, rawBp.condition, rawBp.hitCondition, true)));
this.breakpointsActivated = true;
this.breakpoints = distinct(this.breakpoints, bp => `${bp.uri.toString()}:${bp.lineNumber}:${bp.column}`);
this._onDidChangeBreakpoints.fire();
}

Expand All @@ -828,6 +829,7 @@ export class Model implements IModel {
bp.message = bpData.message;
}
});
this.breakpoints = distinct(this.breakpoints, bp => `${bp.uri.toString()}:${bp.lineNumber}:${bp.column}`);

this._onDidChangeBreakpoints.fire();
}
Expand Down

0 comments on commit 8d4d6e6

Please sign in to comment.