feat(debugger): Show the value of the selected code while paused (#173)

Settings › Debugger › Data Views gains Show value tooltip on code selection
(on by default). While the debugger is paused, selecting an expression on one
line shows its value once the selection settles, with objects expandable like
the hover tooltip.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-10-29 09:12:40 +08:00
1 джерело 1c46a1cd04
коміт 7cfbf6c47b
8 files changed
+92 -3

No files matched your search

+1
Переглянути файл
@@ -1903,6 +1903,7 @@
"Show the selected coverage suite in editors and the project view": "在编辑器和项目视图中显示所选覆盖率套件",
"Show tool window bars": "显示工具窗口栏",
"Show tool window names": "显示工具窗口名称",
"Show value tooltip on code selection": "选中代码时显示值提示",
"Show value tooltip on mouse hover": "鼠标悬停时显示值工具提示",
"Show values inline": "内联显示值",
"Show virtual space at file bottom": "在文件底部显示虚拟空间",
+3
Переглянути файл
@@ -85,6 +85,7 @@ export interface DebuggerSettingsValid {
inlineValues: boolean;
sortValues: boolean;
valueTooltip: boolean;
valueTooltipOnSelection: boolean;
valueTooltipDelay: number;
skipLibraryCode: boolean;
python: { attachSubprocess: boolean; gevent: boolean };
@@ -245,6 +246,7 @@ export const DEFAULT_WORKFLOW: WorkflowSettings = {
inlineValues: true,
sortValues: false,
valueTooltip: true,
valueTooltipOnSelection: true,
valueTooltipDelay: 700,
skipLibraryCode: true,
python: { attachSubprocess: true, gevent: false },
@@ -380,6 +382,7 @@ export function validateDebugger(raw: unknown): DebuggerSettingsValid {
inlineValues: bool(v.inlineValues, d.inlineValues),
sortValues: bool(v.sortValues, d.sortValues),
valueTooltip: bool(v.valueTooltip, d.valueTooltip),
valueTooltipOnSelection: bool(v.valueTooltipOnSelection, d.valueTooltipOnSelection),
valueTooltipDelay: num(v.valueTooltipDelay, d.valueTooltipDelay, WORKFLOW_LIMITS.tooltipDelay, true),
skipLibraryCode: bool(v.skipLibraryCode, d.skipLibraryCode),
python: {