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

+1
Переглянути файл
@@ -1880,6 +1880,7 @@
"Show hard wrap and visual guides (configured in Code Style options)": "显示硬换行和视觉参考线(在代码样式选项中配置)",
"Show in Finder": "在访达中显示",
"Show in tool window": "在工具窗口中显示",
"Show inlay Run to Cursor popup": "显示内嵌的“运行到光标处”按钮",
"Show indent guides": "显示缩进参考线",
"Show inlay hints": "显示嵌入提示",
"Show inlay hints for:": "为以下语言显示嵌入提示:",
+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),