Skip to main content

Module completion

Module completion 

Source
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§

CompletionController
The completion controller. Holds only the popup state; the document, provider, and caret are supplied by the caller per event.
PopupList
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 highlights filtered[selected].

Enums§

CompletionState
The popup’s open/closed/dismissed state.