@codemirror/autocomplete
Advanced tools
Changelog
0.19.7 (2021-11-16)
Make option deduplication less aggressive, so that options with different type
or apply
fields don't get merged.
Changelog
0.19.6 (2021-11-12)
Fix an issue where parsing a snippet with a field that was labeled only by a number crashed.
Changelog
0.19.5 (2021-11-09)
Make sure info tooltips don't stick out of the bottom of the page.
The package exports a new function selectedCompletion
, which can be used to find out which completion is currently selected.
Transactions created by picking a completion now have an annotation (pickedCompletion
) holding the original completion.
Changelog
0.19.4 (2021-10-24)
Don't rely on the platform's highlight colors for the active completion, since those are inconsistent and may not be appropriate for the theme.
Fix incorrect match underline for some kinds of matched completions.
Changelog
0.19.3 (2021-08-31)
Improve the sorting of completions by using localeCompare
.
Fix reading of autocompletions in NVDA screen reader.
The new icons
option can be used to turn off icons in the completion list.
The optionClass
option can now be used to add CSS classes to the options in the completion list.
It is now possible to inject additional content into rendered completion options with the addToOptions
configuration option.
Changelog
0.19.2 (2021-08-25)
Fix an issue where completeAnyWord
would return results when there was no query and explicit
was false.
Changelog
0.18.8 (2021-06-30)
Add an ifIn
helper function that constrains a completion source to only fire when in a given syntax node. Add support for unfiltered completions
A completion result can now set a filter: false
property to disable filtering and sorting of completions, when it already did so itself.