@codemirror/autocomplete
Advanced tools
Changelog
6.18.0 (2024-08-05)
Style the info element so that newlines are preserved, to make it easier to display multi-line info from a string source.
When registering an abort
handler for a completion query, you can now use the onDocChange
option to indicate that your query should be aborted as soon as the document changes while it is running.
Changelog
6.17.0 (2024-07-03)
Fix an issue where completions weren't properly reset when starting a new completion through activateOnCompletion
.
CompletionContext
objects now have a view
property that holds the editor view when the query context has a view available.
Changelog
6.16.3 (2024-06-19)
Avoid adding an aria-autocomplete
attribute to the editor when there are no active sources active.
Changelog
6.16.2 (2024-05-31)
Allow backslash-escaped closing braces inside snippet field names/content.
Changelog
6.16.1 (2024-05-29)
Fix a bug where multiple backslashes before a brace in a snippet were all removed.
Changelog
6.16.0 (2024-04-12)
The new activateOnCompletion
option allows autocompletion to be configured to chain completion activation for some types of completions.
Changelog
6.15.0 (2024-03-13)
The new filterStrict
option can be used to turn off fuzzy matching of completions.
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.