@codemirror/autocomplete
Advanced tools
Changelog
6.14.0 (2024-03-10)
Completion results can now define a map
method that can be used to adjust position-dependent information for document changes.
Changelog
6.13.0 (2024-02-29)
Completions may now provide 'commit characters' that, when typed, commit the completion before inserting the character.
Changelog
6.12.0 (2024-01-12)
Make sure snippet completions also set userEvent
to input.complete
.
Fix a crash when the editor lost focus during an update and autocompletion was active.
Fix a crash when using a snippet that has only one field, but multiple instances of that field.
The new activateOnTypingDelay
option allows control over the debounce time before the completions are queried when the user types.
Changelog
6.11.1 (2023-11-27)
Fix a bug that caused typing over closed brackets after pressing enter to still not work in many situations.
Changelog
6.11.0 (2023-11-09)
Fix an issue that would prevent typing over closed brackets after starting a new line with enter.
Additional elements rendered in completion options with addToOptions
are now given access to the editor view.
Changelog
6.10.2 (2023-10-13)
Fix a bug that caused updateSyncTime
to always delay the initial population of the tooltip.
Changelog
6.10.1 (2023-10-11)
Fix a bug where picking a selection with the mouse could use the wrong completion if the completion list was updated after being opened.
Changelog
6.10.0 (2023-10-11)
The new autocompletion configuration option updateSyncTime
allows control over how long fast sources are held back waiting for slower completion sources.
Changelog
6.9.2 (2023-10-06)
Fix a bug in completeAnyWord
that could cause it to generate invalid regular expressions and crash.