@codemirror/autocomplete
Advanced tools
Changelog
6.0.3 (2022-07-04)
Fix a bug that caused closeBrackets
to not close quotes when at the end of a syntactic construct that starts with a similar quote.
Changelog
6.0.2 (2022-06-15)
Declare package dependencies as peer dependencies as an attempt to avoid duplicated package issues.
Changelog
0.20.3 (2022-05-30)
Add an aria-label to the completion listbox.
Fix a regression that caused transactions generated for completion to not have a userEvent
annotation.
Changelog
0.20.2 (2022-05-24)
The package now exports an insertCompletionText
helper that implements the default behavior for applying a completion.
Changelog
0.20.1 (2022-05-16)
The new closeOnBlur
option determines whether the completion tooltip is closed when the editor loses focus.
CompletionResult
objects with filter: false
may now have a getMatch
property that determines the matched range in the options.
Changelog
0.20.0 (2022-04-20)
CompletionResult.span
has been renamed to validFor
, and may now hold a function as well as a regular expression.
Remove code that dropped any options beyond the 300th one when matching and sorting option lists.
Completion will now apply to all cursors when there are multiple cursors.
CompletionResult.update
can now be used to implement quick autocompletion updates in a synchronous way.
The @codemirror/closebrackets package was merged into this one.
Changelog
0.19.15 (2022-03-23)
The selectedCompletionIndex
function tells you the position of the currently selected completion.
The new setSelectionCompletion
function creates a state effect that moves the selected completion to a given index.
A completion's info
method may now return null to indicate that no further info is available.