@codemirror/autocomplete
Advanced tools
Changelog
6.5.1 (2023-04-13)
Keep completions open when interaction with an info tooltip moves focus out of the editor.
Changelog
6.5.0 (2023-04-13)
When closeBrackets
skips a bracket, it now generates a change that overwrites the bracket.
Replace the entire selected range when picking a completion with a non-cursor selection active.
Completions can now provide a section
field that is used to group them into sections.
The new positionInfo
option can be used to provide custom logic for positioning the info tooltips.
Changelog
6.4.2 (2023-02-17)
Fix a bug where the apply method created by snippet
didn't add a pickedCompletion
annotation to the transactions it created.
Changelog
6.4.1 (2023-02-14)
Don't consider node names in trees that aren't the same language as the one at the completion position in ifIn
and ifNotIn
.
Make sure completions that exactly match the input get a higher score than those that don't (so that even if the latter has a score boost, it ends up lower in the list).
Changelog
6.4.0 (2022-12-14)
Fix an issue where the extension would sometimes try to draw a disabled dialog at an outdated position, leading to plugin crashes.
A tooltipClass
option to autocompletion can now be used to add additional CSS classes to the completion tooltip.
Changelog
6.3.4 (2022-11-24)
Fix an issue where completion lists could end up being higher than the tooltip they were in.
Changelog
6.3.3 (2022-11-18)
Set an explicit box-sizing
style on completion icons so CSS resets don't mess them up.
Allow closing braces in templates to be escaped with a backslash.
Changelog
6.3.2 (2022-11-15)
Fix a regression that could cause the completion dialog to stick around when it should be hidden.
Changelog
6.3.1 (2022-11-14)
Fix a regression where transactions for picking a completion (without custom apply
method) no longer had the pickedCompletion
annotation.
Reduce flickering for completion sources without validFor
info by temporarily showing a disabled tooltip while the completion updates.
Make sure completion info tooltips are kept within the space provided by the tooltipSpace
option.