Package-level declarations
Types
Tracks the currently active snippet insertion — the list of tab-stop fields and the index of the field the cursor is at.
Configuration for close-brackets behavior.
A single completion option.
Context passed to Completion.applyFn when a completion is accepted.
Configuration for the autocompletion extension.
Context passed to completion sources.
The result of a completion source query.
A named section for grouping completions.
A function that provides completions for a given context.
Standard completion type indicators. Use value as the Completion.type string, or pass the enum directly to Completion via CompletionType.value.
Result of CompletionContext.matchBefore.
A suspend function that provides completions for a given context.
Properties
Accept the currently selected completion.
Clear the active snippet.
Keymap for close-brackets: Backspace deletes bracket pair.
Close the completion list.
A completion source that provides all words in the document.
Background color for the completion popup.
Facet for completion configuration.
Text color for completion detail/info text.
Text color for completion type icons.
Default autocompletion keymap bindings.
Background color for the selected completion item.
Text color for completion labels.
Delete bracket pair command: when cursor is between a pair, delete both.
Move to the next snippet field, or clear the snippet if at the last field.
Transaction annotation that tags a transaction where a completion was accepted. Extensions can read this to react to completion events.
Move to the previous snippet field.
Effect to set the selected completion index.
Background color for the active snippet field.
Background color for inactive snippet fields.
Default keymap for snippet field navigation: Tab, Shift-Tab, and Escape.
State field that holds the currently active snippet, or null when no snippet is active.
Explicitly start completion (Ctrl-Space).
Functions
Wrap a SuspendCompletionSource into a CompletionSource that runs the suspend function in a blocking context.
Wrap a SuspendCompletionSource into a CompletionSource that runs the suspend function in a blocking context.
Wrap a SuspendCompletionSource into a CompletionSource that runs the suspend function in a blocking context.
Wrap a SuspendCompletionSource into a CompletionSource that runs the suspend function in a blocking context.
Create the autocompletion extension.
Extension that auto-closes brackets and quotes.
Create a completion source from a static list.
Get the completion status: "active" if completions are shown, null otherwise.
Get the current list of filtered completions.
Whether there is a next snippet field to navigate to.
Whether there is a previous snippet field to navigate to.
Wrap a CompletionSource so it only activates when the cursor is inside one of the given syntax node types.
Wrap a CompletionSource so it only activates when the cursor is NOT inside one of the given syntax node types.
Programmatic bracket insertion.
Insert completion text into the document (utility for custom apply functions).
Move the completion selection.
Get the currently selected completion.
Get the index of the currently selected completion.
Parse a snippet template and return a function that, when called, applies the snippet at the given range in the editor.
Create a Completion that, when accepted, inserts a snippet.