Skip to content

Commit

Permalink
Fix erroneous inline breakpoint appearing (#12832)
Browse files Browse the repository at this point in the history
  • Loading branch information
vatsal-uppal-1997 authored Sep 12, 2023
1 parent cb42656 commit 6843880
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/debug/src/browser/editor/debug-editor-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ export class DebugEditorModel implements Disposable {
const line = range.startLineNumber;
const column = range.startColumn;
const oldBreakpoint = this.breakpointRanges.get(decoration)?.[1];
const breakpoint = SourceBreakpoint.create(uri, { line, column }, oldBreakpoint);
const isLineBreakpoint = oldBreakpoint?.raw.line !== undefined && oldBreakpoint?.raw.column === undefined;
const change = isLineBreakpoint ? { line } : { line, column };
const breakpoint = SourceBreakpoint.create(uri, change, oldBreakpoint);
breakpoints.push(breakpoint);
lines.add(line);
}
Expand Down

0 comments on commit 6843880

Please # to comment.