feat(debugger): Show a Run to Cursor button when hovering a line while paused (#168)

While the debugger is suspended, hovering the start of a line shows a small
button left of its text: Run to Cursor runs to that line, and on the execution
line it resumes the program. Settings › Debugger › Show inlay Run to Cursor popup
turns it off.
This commit is contained in:
l0ng-ai
2026-10-29 04:09:28 +08:00
committed by GitHub
parent 2ec7f5d630
commit 4dcf0acc07
10 changed files with 186 additions and 1 deletions
@@ -185,3 +185,25 @@
background: var(--accent-soft);
box-shadow: inset 0 0 0 1px var(--accent);
}
/* Inlay Run to Cursor button, left of a hovered line's text. */
.runToCursor {
position: absolute;
z-index: 5;
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
padding: 0;
border: 1px solid var(--border-popup);
border-radius: var(--radius-small);
background: var(--bg-popup);
box-shadow: var(--shadow-tooltip);
color: var(--fg);
cursor: pointer;
}
.runToCursor:hover {
background: var(--bg-hover);
}