Skip to content

Commit 3835b05

Browse files
authored
disasembly view: handle negative line height returned by debug adapter (microsoft#250081)
1 parent 9e0bfc2 commit 3835b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/debug/browser/disassemblyView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export class DisassemblyView extends EditorPane {
210210
if (thisOM.isSourceCodeRender && row.showSourceLocation && row.instruction.location?.path && row.instruction.line) {
211211
// instruction line + source lines
212212
if (row.instruction.endLine) {
213-
return lineHeight * (row.instruction.endLine - row.instruction.line + 2);
213+
return lineHeight * Math.max(2, (row.instruction.endLine - row.instruction.line + 2));
214214
} else {
215215
// source is only a single line.
216216
return lineHeight * 2;

0 commit comments

Comments
 (0)