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.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-10-29 04:09:28 +08:00
1 джерело 2ec7f5d630
коміт 4dcf0acc07
10 files changed
+186 -1

No files matched your search

+8 -1
Переглянути файл
@@ -20,6 +20,7 @@ import { loadExceptionBreakpoints } from "./breakpoints/exceptions";
import { loadSpecialBreakpoints } from "./breakpoints/special";
import { breakpointGutter } from "./editor/breakpointGutter";
import { executionPoint } from "./editor/execution";
import { runToCursorInlay } from "./editor/runToCursor";
import { installSmartStepPicking, smartStepTargets } from "./editor/smartStep";
import { onHotCodeReplace } from "./hotswap";
import { handleDebugEvent, isLive, loadWatches, publishContext, resetSessions, stopSession, useDebug } from "./state";
@@ -59,7 +60,13 @@ export function activate(): () => void {
registerEditorContribution({
id: "debugger",
order: 60,
extensions: (ctx) => [breakpointGutter(ctx), executionPoint(ctx), valueTooltip(), smartStepTargets(ctx)],
extensions: (ctx) => [
breakpointGutter(ctx),
executionPoint(ctx),
runToCursorInlay(ctx),
valueTooltip(),
smartStepTargets(ctx),
],
}),
installSmartStepPicking(),
onIdeEvent("debug", (e) => {