@codemirror/autocomplete
Advanced tools
Changelog
6.18.3 (2024-11-13)
Backspacing to the start of the completed range will no longer close the completion tooltip when it was triggered implicitly by typing the character before that range.
Changelog
6.18.2 (2024-10-30)
Don't immediately show synchronously updated completions when there are some sources that still need to return.
Changelog
6.18.1 (2024-09-14)
Fix an issue where insertCompletionText
would get confused about the length of the inserted text when it contained CRLF line breaks, and create an invalid selection.
Add Alt-Backtick as additional binding on macOS, where IME can take over Ctrl-Space.
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.