Skip to content

Latest commit

 

History

History
306 lines (153 loc) · 7.77 KB

CHANGELOG.md

File metadata and controls

306 lines (153 loc) · 7.77 KB

6.1.0 (2022-07-19)

New features

You can now provide a compareCompletions option to autocompletion to influence the way completions with the same match score are sorted.

The selectOnOpen option to autocompletion can be used to require explicitly selecting a completion option before acceptCompletion does anything.

6.0.4 (2022-07-07)

Bug fixes

Remove a leftover console.log in bracket closing code.

6.0.3 (2022-07-04)

Bug fixes

Fix a bug that caused closeBrackets to not close quotes when at the end of a syntactic construct that starts with a similar quote.

6.0.2 (2022-06-15)

Bug fixes

Declare package dependencies as peer dependencies as an attempt to avoid duplicated package issues.

6.0.1 (2022-06-09)

Bug fixes

Support escaping ${ or #{ in snippets.

6.0.0 (2022-06-08)

Bug fixes

Scroll the cursor into view when inserting a snippet.

0.20.3 (2022-05-30)

Bug fixes

Add an aria-label to the completion listbox.

Fix a regression that caused transactions generated for completion to not have a userEvent annotation.

0.20.2 (2022-05-24)

New features

The package now exports an insertCompletionText helper that implements the default behavior for applying a completion.

0.20.1 (2022-05-16)

New features

The new closeOnBlur option determines whether the completion tooltip is closed when the editor loses focus.

CompletionResult objects with filter: false may now have a getMatch property that determines the matched range in the options.

0.20.0 (2022-04-20)

Breaking changes

CompletionResult.span has been renamed to validFor, and may now hold a function as well as a regular expression.

Bug fixes

Remove code that dropped any options beyond the 300th one when matching and sorting option lists.

Completion will now apply to all cursors when there are multiple cursors.

New features

CompletionResult.update can now be used to implement quick autocompletion updates in a synchronous way.

The @codemirror/closebrackets package was merged into this one.

0.19.15 (2022-03-23)

New features

The selectedCompletionIndex function tells you the position of the currently selected completion.

The new setSelectionCompletion function creates a state effect that moves the selected completion to a given index.

A completion's info method may now return null to indicate that no further info is available.

0.19.14 (2022-03-10)

Bug fixes

Make the ARIA attributes added to the editor during autocompletion spec-compliant.

0.19.13 (2022-02-18)

Bug fixes

Fix an issue where the completion tooltip stayed open if it was explicitly opened and the user backspaced past its start.

Stop snippet filling when a change happens across one of the snippet fields' boundaries.

0.19.12 (2022-01-11)

Bug fixes

Fix completion navigation with PageUp/Down when the completion tooltip isn't part of the view DOM.

0.19.11 (2022-01-11)

Bug fixes

Fix a bug that caused page up/down to only move the selection by two options in the completion tooltip.

0.19.10 (2022-01-05)

Bug fixes

Make sure the info tooltip is hidden when the selected option is scrolled out of view.

Fix a bug in the completion ranking that would sometimes give options that match the input by word start chars higher scores than appropriate.

Options are now sorted (ascending) by length when their match score is otherwise identical.

0.19.9 (2021-11-26)

Bug fixes

Fix an issue where info tooltips would be visible in an inappropriate position when there was no room to place them properly.

0.19.8 (2021-11-17)

Bug fixes

Give the completion tooltip a minimal width, and show ellipsis when completions overflow the tooltip width.

New features

autocompletion now accepts an aboveCursor option to make the completion tooltip show up above the cursor.

0.19.7 (2021-11-16)

Bug fixes

Make option deduplication less aggressive, so that options with different type or apply fields don't get merged.

0.19.6 (2021-11-12)

Bug fixes

Fix an issue where parsing a snippet with a field that was labeled only by a number crashed.

0.19.5 (2021-11-09)

Bug fixes

Make sure info tooltips don't stick out of the bottom of the page.

New features

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.

0.19.4 (2021-10-24)

Bug fixes

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.

0.19.3 (2021-08-31)

Bug fixes

Improve the sorting of completions by using localeCompare.

Fix reading of autocompletions in NVDA screen reader.

New features

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.

0.19.2 (2021-08-25)

Bug fixes

Fix an issue where completeAnyWord would return results when there was no query and explicit was false.

0.19.1 (2021-08-11)

Bug fixes

Fix incorrect versions for @lezer dependencies.

0.19.0 (2021-08-11)

Breaking changes

Update dependencies to 0.19.0

0.18.8 (2021-06-30)

New features

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.

0.18.7 (2021-06-14)

Bug fixes

Don't treat continued completions when typing after an explicit completion as explicit.

0.18.6 (2021-06-03)

Bug fixes

Adding or reconfiguring completion sources will now cause them to be activated right away if a completion was active.

New features

You can now specify multiple types in Completion.type by separating them by spaces. Small doc comment tweak for Completion.type

0.18.5 (2021-04-23)

Bug fixes

Fix a regression where snippet field selection didn't work with @codemirror/state 0.18.6.

Fix a bug where snippet fields with different position numbers were inappropriately merged.

0.18.4 (2021-04-20)

Bug fixes

Fix a crash in Safari when moving the selection during composition.

0.18.3 (2021-03-15)

Bug fixes

Adjust to updated @codemirror/tooltip interface.

0.18.2 (2021-03-14)

Bug fixes

Fix unintended ES2020 output (the package contains ES6 code again).

0.18.1 (2021-03-11)

Bug fixes

Stop active completion when all sources resolve without producing any matches.

New features

Completion.info may now return a promise.

0.18.0 (2021-03-03)

Bug fixes

Only preserve selected option across updates when it isn't the first option.

0.17.4 (2021-01-18)

Bug fixes

Fix a styling issue where the selection had become invisible inside snippet fields (when using drawSelection).

New features

Snippet fields can now be selected with the pointing device (so that they are usable on touch devices).

0.17.3 (2021-01-18)

Bug fixes

Fix a bug where uppercase completions would be incorrectly matched against the typed input.

0.17.2 (2021-01-12)

Bug fixes

Don't bind Cmd-Space on macOS, since that already has a system default binding. Use Ctrl-Space for autocompletion.

0.17.1 (2021-01-06)

New features

The package now also exports a CommonJS module.

0.17.0 (2020-12-29)

Breaking changes

First numbered release.