Expand description
The completion controller state machine — core view-state, driven by
the widget and headlessly tested against a stub provider. It owns the popup
list, local prefix filtering, Escape-stickiness, and the provider-call budget
(at most one complete() per input event); it never touches the document.
Accepting returns the chosen item for the caller to apply as one sealed
transaction.
Structs§
- Completion
Controller - The completion controller. Holds only the popup state; the document, provider, and caret are supplied by the caller per event.
- Popup
List - The live popup: the provider’s items plus the local filter/selection over
them. The widget renders
items[filtered[i]]for the visible window and highlightsfiltered[selected].
Enums§
- Completion
State - The popup’s open/closed/dismissed state.