Autocompletion for the CodeMirror code editor
Last release 2 months ago
03 Jun 2026
Release timing varies
gaps range from 2 weeks to 7 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
89 releases · first in 2020
Release timeline
89 releases since 2020One column per quarter.
Releases
- 6.20.33 Jun 2026
Release notes2 sources agree
Open source →Bug fixes
In snippets, treat tab stop 0 as the final one, aligning with a widely used convention.
Fix a bug in the handling of changes before the completion while completion is active.
- 6.20.26 May 2026
Release notes2 sources agree
Open source →Bug fixes
Fix an issue where you couldn't move to the last page of completions when its count was a precise multiple of the page size.
- 6.20.12 Mar 2026
Release notes2 sources agree
Open source →Bug fixes
Clicking the horizontal dots at the top/bottom of a list of completion options now moves the selection there, so that more completions become visible.
- 6.20.020 Nov 2025
Release notes2 sources agree
Open source →New features
Completions now support a
sortTextproperty to influence sort order. - 6.19.123 Oct 2025
Release notes2 sources agree
Open source →Bug fixes
Make sure a completion's info panel is associated with that completion in the accessibility tree.
- 6.19.026 Sept 2025
Release notes2 sources agree
Open source →New features
Completion sections may now set their rank to
dynamicto indicate their order should be determined by the matching score of their best-matching option. - 6.18.72 Sept 2025
Release notes2 sources agree
Open source →Bug fixes
Add a binding for Alt-i to trigger
startCompletion, following VS Code's current default bindings.Improve handling of nested fields in snippets.
- 6.18.612 Feb 2025
Release notes2 sources agree
Open source →Bug fixes
Fix an issue where the closing character for double-angle quotation marks and full-width brackets was computed incorrectly.
- 6.18.511 Feb 2025
Release notes2 sources agree
Open source →Bug fixes
Fix an issue where clicking on the scrollbar for the completion list could move focus out of the editor.
- 6.18.417 Dec 2024
Release notes2 sources agree
Open source →Bug fixes
Align the behavior of snippet completions with text completions in that they overwrite the selected text.
- 6.18.313 Nov 2024
Release notes2 sources agree
Open source →Bug fixes
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.
- 6.18.230 Oct 2024
Release notes2 sources agree
Open source →Bug fixes
Don't immediately show synchronously updated completions when there are some sources that still need to return.
- 6.18.114 Sept 2024
Release notes2 sources agree
Open source →Bug fixes
Fix an issue where
insertCompletionTextwould 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.
- 6.18.05 Aug 2024
Release notes2 sources agree
Open source →Bug fixes
Style the info element so that newlines are preserved, to make it easier to display multi-line info from a string source.
New features
When registering an
aborthandler for a completion query, you can now use theonDocChangeoption to indicate that your query should be aborted as soon as the document changes while it is running. - 6.17.03 Jul 2024
Release notes2 sources agree
Open source →Bug fixes
Fix an issue where completions weren't properly reset when starting a new completion through
activateOnCompletion.New features
CompletionContextobjects now have aviewproperty that holds the editor view when the query context has a view available. - 6.16.319 Jun 2024
Release notes2 sources agree
Open source →Bug fixes
Avoid adding an
aria-autocompleteattribute to the editor when there are no active sources active. - 6.16.231 May 2024
Release notes2 sources agree
Open source →Bug fixes
Allow backslash-escaped closing braces inside snippet field names/content.
- 6.16.129 May 2024
Release notes2 sources agree
Open source →Bug fixes
Fix a bug where multiple backslashes before a brace in a snippet were all removed.
- 6.16.012 Apr 2024
Release notes2 sources agree
Open source →New features
The new
activateOnCompletionoption allows autocompletion to be configured to chain completion activation for some types of completions. - 6.15.013 Mar 2024
Release notes2 sources agree
Open source →New features
The new
filterStrictoption can be used to turn off fuzzy matching of completions. - 6.14.010 Mar 2024
Release notes2 sources agree
Open source →New features
Completion results can now define a
mapmethod that can be used to adjust position-dependent information for document changes. - 6.13.029 Feb 2024
Release notes2 sources agree
Open source →New features
Completions may now provide 'commit characters' that, when typed, commit the completion before inserting the character.
- 6.12.012 Jan 2024
Release notes2 sources agree
Open source →Bug fixes
Make sure snippet completions also set
userEventtoinput.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.
New features
The new
activateOnTypingDelayoption allows control over the debounce time before the completions are queried when the user types. - 6.11.127 Nov 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug that caused typing over closed brackets after pressing enter to still not work in many situations.
- 6.11.09 Nov 2023
Release notes2 sources agree
Open source →Bug fixes
Fix an issue that would prevent typing over closed brackets after starting a new line with enter.
New features
Additional elements rendered in completion options with
addToOptionsare now given access to the editor view. - 6.10.213 Oct 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug that caused
updateSyncTimeto always delay the initial population of the tooltip. - 6.10.111 Oct 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug where picking a selection with the mouse could use the wrong completion if the completion list was updated after being opened.
- 6.10.011 Oct 2023
Release notes2 sources agree
Open source →New features
The new autocompletion configuration option
updateSyncTimeallows control over how long fast sources are held back waiting for slower completion sources. - 6.9.26 Oct 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug in
completeAnyWordthat could cause it to generate invalid regular expressions and crash. - 6.9.114 Sept 2023
Release notes2 sources agree
Open source →Bug fixes
Make sure the cursor is scrolled into view after inserting completion text.
Make sure scrolling completions into view doesn't get confused when the tooltip is scaled.
- 6.9.018 Jul 2023
Release notes2 sources agree
Open source →New features
Completions may now provide a
displayLabelproperty that overrides the way they are displayed in the completion list. - 6.8.123 Jun 2023
Release notes2 sources agree
Open source →Bug fixes
acceptCompletionnow returns false (allowing other handlers to take effect) when the completion popup is open but disabled. - 6.8.012 Jun 2023
Release notes2 sources agree
Open source →New features
The result of
Completion.infomay now include adestroymethod that will be called when the tooltip is removed. - 6.7.113 May 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug that cause incorrect ordering of completions when some results covered input text and others didn't.
- 6.7.011 May 2023
Release notes2 sources agree
Open source →New features
The new
hasNextSnippetFieldandhasPrevSnippetFieldfunctions can be used to figure out if the snippet-field-motion commands apply to a given state. - 6.6.13 May 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug that made the editor use the completion's original position, rather than its current position, when changes happened in the document while a result was active.
- 6.6.027 Apr 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug in
insertCompletionTextthat caused it to replace the wrong range when a result set'stofell after the cursor.New features
Functions returned by
snippetcan now be called without a completion object. - 6.5.113 Apr 2023
Release notes2 sources agree
Open source →Bug fixes
Keep completions open when interaction with an info tooltip moves focus out of the editor.
- 6.5.013 Apr 2023
Release notes2 sources agree
Open source →Bug fixes
When
closeBracketsskips 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.
New features
Completions can now provide a
sectionfield that is used to group them into sections.The new
positionInfooption can be used to provide custom logic for positioning the info tooltips. - 6.4.217 Feb 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug where the apply method created by
snippetdidn't add apickedCompletionannotation to the transactions it created. - 6.4.114 Feb 2023
Release notes2 sources agree
Open source →Bug fixes
Don't consider node names in trees that aren't the same language as the one at the completion position in
ifInandifNotIn.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).
- 6.4.014 Dec 2022
Release notes2 sources agree
Open source →Bug fixes
Fix an issue where the extension would sometimes try to draw a disabled dialog at an outdated position, leading to plugin crashes.
New features
A
tooltipClassoption to autocompletion can now be used to add additional CSS classes to the completion tooltip. - 6.3.424 Nov 2022
Release notes2 sources agree
Open source →Bug fixes
Fix an issue where completion lists could end up being higher than the tooltip they were in.
- 6.3.318 Nov 2022
Release notes2 sources agree
Open source →Bug fixes
Set an explicit
box-sizingstyle on completion icons so CSS resets don't mess them up.Allow closing braces in templates to be escaped with a backslash.
- 6.3.215 Nov 2022
Release notes2 sources agree
Open source →Bug fixes
Fix a regression that could cause the completion dialog to stick around when it should be hidden.
- 6.3.114 Nov 2022
Release notes2 sources agree
Open source →Bug fixes
Fix a regression where transactions for picking a completion (without custom
applymethod) no longer had thepickedCompletionannotation.Reduce flickering for completion sources without
validForinfo by temporarily showing a disabled tooltip while the completion updates.Make sure completion info tooltips are kept within the space provided by the
tooltipSpaceoption. - 6.3.022 Sept 2022
Release notes2 sources agree
Open source →New features
Close bracket configuration now supports a
stringPrefixesproperty that can be used to allow autoclosing of prefixed strings. - 6.2.013 Sept 2022
Release notes2 sources agree
Open source →New features
Autocompletion now takes an
interactionDelayoption that can be used to control the delay between the time where completion opens and the time where commands likeacceptCompletionaffect it. - 6.1.18 Sept 2022
Release notes2 sources agree
Open source →Bug fixes
Fix a bug that prevented transactions produced by
deleteBracketPairfrom being marked as deletion user events.Improve positioning of completion info tooltips so they are less likely to stick out of the screen on small displays.
- 6.1.019 Jul 2022
Release notes2 sources agree
Open source →New features
You can now provide a
compareCompletionsoption to autocompletion to influence the way completions with the same match score are sorted.The
selectOnOpenoption to autocompletion can be used to require explicitly selecting a completion option beforeacceptCompletiondoes anything. - 6.0.47 Jul 2022
Release notes2 sources agree
Open source →Bug fixes
Remove a leftover
console.login bracket closing code. - 6.0.34 Jul 2022
Release notes2 sources agree
Open source →Bug fixes
Fix a bug that caused
closeBracketsto not close quotes when at the end of a syntactic construct that starts with a similar quote. - 6.0.215 Jun 2022
Release notes2 sources agree
Open source →Bug fixes
Declare package dependencies as peer dependencies as an attempt to avoid duplicated package issues.
- 6.0.19 Jun 2022
- 6.0.08 Jun 2022
Release notes2 sources agree
Open source →Bug fixes
Scroll the cursor into view when inserting a snippet.
- 0.20.330 May 2022
Release notes2 sources agree
Open source →Bug fixes
Add an aria-label to the completion listbox.
Fix a regression that caused transactions generated for completion to not have a
userEventannotation. - 0.20.224 May 2022
Release notes2 sources agree
Open source →New features
The package now exports an
insertCompletionTexthelper that implements the default behavior for applying a completion. - 0.20.116 May 2022
Release notes2 sources agree
Open source →New features
The new
closeOnBluroption determines whether the completion tooltip is closed when the editor loses focus.CompletionResultobjects withfilter: falsemay now have agetMatchproperty that determines the matched range in the options. - 0.20.020 Apr 2022
Release notes2 sources agree
Open source →Breaking changes
CompletionResult.spanhas been renamed tovalidFor, 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.updatecan now be used to implement quick autocompletion updates in a synchronous way.The @codemirror/closebrackets package was merged into this one.
- 0.19.1523 Mar 2022
Release notes2 sources agree
Open source →New features
The
selectedCompletionIndexfunction tells you the position of the currently selected completion.The new
setSelectionCompletionfunction creates a state effect that moves the selected completion to a given index.A completion's
infomethod may now return null to indicate that no further info is available.