debug: show first line placeholder if other breakpoints are online (#178624)

Got lost in a merge conflict resolution
This commit is contained in:
Connor Peet
2023-03-29 14:45:42 -07:00
committed by GitHub
parent a442d6a7cb
commit 2c68e07691
@@ -173,8 +173,8 @@ function createCandidateDecorations(model: ITextModel, breakpointDecorations: IB
const lastColumn = model.getLineLastNonWhitespaceColumn(lineNumber);
positions.forEach(p => {
const range = new Range(p.lineNumber, p.column, p.lineNumber, p.column + 1);
if (p.column <= firstColumn || p.column > lastColumn) {
// Do not render candidates on the start of the line.
if ((p.column <= firstColumn && !breakpointDecorations.some(bp => bp.range.startColumn > firstColumn && bp.range.startLineNumber === p.lineNumber)) || p.column > lastColumn) {
// Do not render candidates on the start of the line if there's no other breakpoint on the line.
return;
}