feat(debugger): completion in Evaluate, the Variables evaluate field and the Debug console (#1102)

While suspended, the debugger's expression fields complete from the debug adapter (DAP completions) in the selected frame: Evaluate, the Variables evaluate field and the Debug console share one hook. The list opens while typing an identifier or after '.', or on Ctrl+Space; Up/Down, Enter/Tab, Escape. The Evaluate dialog is resizable and its result tree grows with it. Backend: ide-dap completions (skipped without supportsCompletionsRequest), debug_completions on the host and the desktop app.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-04 04:47:12 +08:00
1 джерело e575bf8c24
коміт fe0ee338f4
13 files changed
+481 -6

No files matched your search

+38
Переглянути файл
@@ -0,0 +1,38 @@
/* Completion popup under an expression field: menu metrics, scrolling past ~12 rows. */
.popup {
padding: 6px 0;
min-width: 240px;
max-width: 520px;
}
.list {
max-height: calc(12 * var(--h-list-row));
overflow-y: auto;
}
.item {
display: flex;
align-items: center;
gap: 6px;
height: var(--h-list-row);
margin: 0 6px;
padding: 0 8px 0 6px;
border-radius: var(--radius-selection, 5px);
color: var(--fg-strong);
font-family: var(--font-mono);
white-space: nowrap;
cursor: default;
}
.active {
background: var(--bg-tree-selected);
}
.label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.detail {
margin-left: 16px;
color: var(--fg-muted);
overflow: hidden;
text-overflow: ellipsis;
}