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

+3
Переглянути файл
@@ -81,6 +81,7 @@ export interface DebuggerSettingsValid {
focusAppOnBreakpoint: boolean;
hideOnTermination: boolean;
breakpointsAnyFile: boolean;
runToCursorInlay: boolean;
inlineValues: boolean;
valueTooltip: boolean;
valueTooltipDelay: number;
@@ -239,6 +240,7 @@ export const DEFAULT_WORKFLOW: WorkflowSettings = {
focusAppOnBreakpoint: false,
hideOnTermination: false,
breakpointsAnyFile: false,
runToCursorInlay: true,
inlineValues: true,
valueTooltip: true,
valueTooltipDelay: 700,
@@ -372,6 +374,7 @@ export function validateDebugger(raw: unknown): DebuggerSettingsValid {
focusAppOnBreakpoint: bool(v.focusAppOnBreakpoint, d.focusAppOnBreakpoint),
hideOnTermination: bool(v.hideOnTermination, d.hideOnTermination),
breakpointsAnyFile: bool(v.breakpointsAnyFile, d.breakpointsAnyFile),
runToCursorInlay: bool(v.runToCursorInlay, d.runToCursorInlay),
inlineValues: bool(v.inlineValues, d.inlineValues),
valueTooltip: bool(v.valueTooltip, d.valueTooltip),
valueTooltipDelay: num(v.valueTooltipDelay, d.valueTooltipDelay, WORKFLOW_LIMITS.tooltipDelay, true),