fix(dependencies): update codemirror editor packages to v6 (major) #333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.19.15->^6.0.0^0.19.8->^6.0.0^0.19.7->^6.0.0^0.19.2->^6.0.0^0.19.6->^6.0.0^0.19.5->^6.0.0^0.19.4->^6.0.0^0.19.2->^6.0.0^0.19.1->^6.0.0^0.19.10->^6.0.0^0.19.9->^6.0.0^0.19.48->^6.0.0Release Notes
codemirror/autocomplete (@codemirror/autocomplete)
v6.19.1Compare Source
Bug fixes
Make sure a completion's info panel is associated with that completion in the accessibility tree.
v6.19.0Compare 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.v6.18.7Compare 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.
v6.18.6Compare Source
Bug fixes
Fix an issue where the closing character for double-angle quotation marks and full-width brackets was computed incorrectly.
v6.18.5Compare Source
Bug fixes
Fix an issue where clicking on the scrollbar for the completion list could move focus out of the editor.
v6.18.4Compare Source
Bug fixes
Align the behavior of snippet completions with text completions in that they overwrite the selected text.
v6.18.3Compare 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.
v6.18.2Compare Source
Bug fixes
Don't immediately show synchronously updated completions when there are some sources that still need to return.
v6.18.1Compare 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.
v6.18.0Compare 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.v6.17.0Compare 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.v6.16.3Compare Source
Bug fixes
Avoid adding an
aria-autocompleteattribute to the editor when there are no active sources active.v6.16.2Compare Source
Bug fixes
Allow backslash-escaped closing braces inside snippet field names/content.
v6.16.1Compare Source
Bug fixes
Fix a bug where multiple backslashes before a brace in a snippet were all removed.
v6.16.0Compare Source
New features
The new
activateOnCompletionoption allows autocompletion to be configured to chain completion activation for some types of completions.v6.15.0Compare Source
New features
The new
filterStrictoption can be used to turn off fuzzy matching of completions.v6.14.0Compare Source
New features
Completion results can now define a
mapmethod that can be used to adjust position-dependent information for document changes.v6.13.0Compare Source
New features
Completions may now provide 'commit characters' that, when typed, commit the completion before inserting the character.
v6.12.0Compare 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.v6.11.1Compare Source
Bug fixes
Fix a bug that caused typing over closed brackets after pressing enter to still not work in many situations.
v6.11.0Compare 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.v6.10.2Compare Source
Bug fixes
Fix a bug that caused
updateSyncTimeto always delay the initial population of the tooltip.v6.10.1Compare 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.
v6.10.0Compare Source
New features
The new autocompletion configuration option
updateSyncTimeallows control over how long fast sources are held back waiting for slower completion sources.v6.9.2Compare Source
Bug fixes
Fix a bug in
completeAnyWordthat could cause it to generate invalid regular expressions and crash.v6.9.1Compare 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.
v6.9.0Compare Source
New features
Completions may now provide a
displayLabelproperty that overrides the way they are displayed in the completion list.v6.8.1Compare Source
Bug fixes
acceptCompletionnow returns false (allowing other handlers to take effect) when the completion popup is open but disabled.v6.8.0Compare Source
New features
The result of
Completion.infomay now include adestroymethod that will be called when the tooltip is removed.v6.7.1Compare Source
Bug fixes
Fix a bug that cause incorrect ordering of completions when some results covered input text and others didn't.
v6.7.0Compare Source
New features
The new
hasNextSnippetFieldandhasPrevSnippetFieldfunctions can be used to figure out if the snippet-field-motion commands apply to a given state.v6.6.1Compare 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.
v6.6.0Compare 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.v6.5.1Compare Source
Bug fixes
Keep completions open when interaction with an info tooltip moves focus out of the editor.
v6.5.0Compare 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.v6.4.2Compare Source
Bug fixes
Fix a bug where the apply method created by
snippetdidn't add apickedCompletionannotation to the transactions it created.v6.4.1Compare 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).
v6.4.0Compare 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.v6.3.4Compare Source
Bug fixes
Fix an issue where completion lists could end up being higher than the tooltip they were in.
v6.3.3Compare 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.
v6.3.2Compare Source
Bug fixes
Fix a regression that could cause the completion dialog to stick around when it should be hidden.
v6.3.1Compare 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.v6.3.0Compare Source
New features
Close bracket configuration now supports a
stringPrefixesproperty that can be used to allow autoclosing of prefixed strings.v6.2.0Compare 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.v6.1.1Compare 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.
v6.1.0Compare 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.v6.0.4Compare Source
Bug fixes
Remove a leftover
console.login bracket closing code.v6.0.3Compare 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.v6.0.2Compare Source
Bug fixes
Declare package dependencies as peer dependencies as an attempt to avoid duplicated package issues.
v6.0.1Compare Source
Bug fixes
Support escaping
${or#{in snippets.v6.0.0Compare Source
Bug fixes
Scroll the cursor into view when inserting a snippet.
v0.20.3Compare 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.v0.20.2Compare Source
New features
The package now exports an
insertCompletionTexthelper that implements the default behavior for applying a completion.v0.20.1Compare 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.v0.20.0Compare 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.
codemirror/commands (@codemirror/commands)
v6.10.0Compare Source
New features
The new
deleteGroupForwardWincommand provides by-group forward deletion using the Windows convention.v6.9.0Compare Source
Bug fixes
Prevent the default behavior of backspace and delete keys, to prevent the browser from doing anything creative when there's nothing to delete.
New features
Implement new
addCursorAboveandaddCursorBelowcommands. Bind them to Mod-Alt-ArrowUp/Down in the default keymap.v6.8.1Compare Source
Bug fixes
Fix an issue where creating a comment for a line that starts an inner language would use the comment style from the outer language.
v6.8.0Compare Source
New features
The new
cursorGroupForwardWinandselectGroupForwardWincommands implement Windows-style forward motion by group.v6.7.1Compare Source
Bug fixes
Change
toggleBlockCommentByLineto not affect lines with the selection end right at their start.v6.7.0Compare Source
Bug fixes
Bind Shift-Enter to the same command as Enter in the default keymap, so that it doesn't do nothing when on an EditContext-supporting browser.
New features
Add commands for by-string-index cursor motion that ignores text direction.
v6.6.2Compare Source
Bug fixes
Fix an issue causing
selectParentSyntaxto not select syntax that is a direct child of the top node.Make
selectParentSyntaxreturn false when it doesn't change the selection.v6.6.1Compare Source
Bug fixes
Fix a bug in the undo history that would cause it to incorrectly track inverted effects when adding multiple edits to a single history event.
v6.6.0Compare Source
New features
The new
toggleTabFocusModeandtemporarilySetTabFocusModecommands provide control over the view's tab-focus mode.The default keymap now binds Ctrl-m (Shift-Alt-m on macOS) to
toggleTabFocusMode.v6.5.0Compare Source
New features
The
insertNewlineKeepIndentcommand inserts a newline along with the same indentation as the line before.v6.4.0Compare Source
Bug fixes
Fix an issue where
deleteLinesometimes leaves the cursor on the wrong line.New features
The new
deleteCharBackwardStrictcommand just deletes a character, without further smart behavior around indentation.v6.3.3Compare Source
Bug fixes
Fix an issue causing cursor motion commands to not dispatch a transaction when the change only affects cursor associativity.
v6.3.2Compare Source
Bug fixes
Fix a regression that caused
deleteCharBackwardto sometimes delete a large chunk of text.v6.3.1Compare Source
Bug fixes
When undoing, store the selection after the undone change with the redo event, so that redoing restores it.
deleteCharBackwardwill no longer delete variant selector characters as separate characters.v6.3.0Compare Source
Bug fixes
Make it possible for
selectParentSyntaxto jump out of or into a syntax tree overlay.Make Cmd-Backspace and Cmd-Delete on macOS delete to the next line wrap point, not the start/end of the line.
New features
The new
deleteLineBoundaryForwardanddeleteLineBoundaryBackwardcommands delete to the start/end of the line or the next line wrapping point.v6.2.5Compare Source
Bug fixes
Make
insertNewlineAndIndentproperly count indentation for tabs when copying over the previous line's indentation.The various sub-word motion commands will now use
Intl.Segmenter, when available, to stop at CJK language word boundaries.Fix a bug in
insertNewlineAndIndentthat would delete text between brackets if it had no corresponding AST node.v6.2.4Compare Source
Bug fixes
The by-subword motion commands now properly treat dashes, underscores, and similar as subword separators.
v6.2.3Compare Source
Bug fixes
Block commenting the selection no longer includes indentation on the first line.
v6.2.2Compare Source
Bug fixes
Fix a bug where line commenting got confused when commenting a range that crossed language boundaries.
v6.2.1Compare Source
Bug fixes
Keep cursor position stable in
cursorPageUp/cursorPageDownwhen there are panels or other scroll margins active.Make sure
toggleCommentdoesn't get thrown off by local language nesting, by fetching the language data for the start of the selection line.v6.2.0Compare Source
New features
The new
joinToEventhistory configuration option allows you to provide custom logic that determines whether a new transaction is added to an existing history event.v6.1.3Compare Source
Bug fixes
Preserve selection bidi level when extending the selection, to prevent shift-selection from getting stuck in some kinds of bidirectional text.
v6.1.2Compare Source
Bug fixes
Fix a bug that caused deletion commands on non-empty ranges to incorrectly return false and do nothing, causing the editor to fall back to native behavior.
v6.1.1Compare Source
Bug fixes
Make sure the selection endpoints are moved out of atomic ranges when applying a deletion command to a non-empty selection.
v6.1.0Compare Source
Bug fixes
Prevent native behavior on Ctrl/Cmd-ArrowLeft/ArrowRight bindings, so that browsers with odd bidi behavior won't do the wrong thing at start/end of line.
Cmd-ArrowLeft/Right on macOS now moves the cursor in the direction of the arrow even in right-to-left content.
New features
The new
cursorLineBoundaryLeft/RightandselectLineBoundaryLeft/Rightcommands allow directional motion to line boundaries.v6.0.1Compare Source
Bug fixes
Announce to the screen reader when the selection is deleted.
Also bind Ctrl-Shift-z to redo on Linux.
v6.0.0Compare Source
Bug fixes
Fix a bug where by-page selection commands sometimes moved one line too far.
v0.20.0Compare Source
Breaking changes
There is no longer a separate
commentKeymap. Those bindings are now part ofdefaultKeymap.Bug fixes
Make
cursorPageUpandcursorPageDownmove by window height when the editor is higher than the window.Make sure the default behavior of Home/End is prevented, since it could produce unexpected results on macOS.
New features
The exports from @codemirror/comment are now available in this package.
The exports from the @codemirror/history package are now available from this package.
codemirror/lang-javascript (@codemirror/lang-javascript)
v6.2.4Compare Source
Bug fixes
Fix a crash in the
esLinthelper when a rule'smeta.docsisn't defined.Properly dedent lines starting with an opening curly brace below composite statements like
for/while.v6.2.3Compare Source
Bug fixes
Disable JavaScript completions in JSX context.
v6.2.2Compare Source
Bug fixes
Fix a bug that would cause self-closing JSX tags to have another closing tag inserted when typing the final '>'.
v6.2.1Compare Source
Bug fixes
autoCloseTagsnow generates two separate transactions, so that the completion can be undone separately.v6.2.0Compare Source
New features
Export a
typescriptSnippetsarray and include TypeScript keyword completions in the default support extension when in TypeScript mode.v6.1.9Compare Source
Bug fixes
Make sure
scopeCompletionSourcedoesn't try to complete property names that aren't simple identifier (such as numeric indices).v6.1.8Compare Source
Bug fixes
Stop completing keywords after
.tokens.v6.1.7Compare Source
Bug fixes
Fix overeager JSX tag closing inside attribute values and in self-closing tags.
v6.1.6Compare Source
Bug fixes
Fix a bug that allowed
autoCloseTagsto close JSX tags in JavaScript context.v6.1.5Compare Source
Bug fixes
Make TypeScript object type syntax foldable.
v6.1.4Compare Source
Bug fixes
Make sure code in JSX context can be commented correctly.
v6.1.3Compare Source
Bug fixes
Fix auto-closing of JSX fragments.
v6.1.2Compare Source
Bug fixes
Automatic tag closing in JSX now works for namespaced and member-expression tag names.
v6.1.1Compare Source
Bug fixes
Make
completionPathhandle?.syntax.v6.1.0Compare Source
New features
The
completionPathhelper can now be used to find the object path to complete at a given position.scopeCompletionSourceprovides a completion source based on a scope object.v6.0.2Compare Source
Bug fixes
Fix the
sourcefield in ESLint diagnostics to properly hold"eslint".Fix (non-)auto indentation in template strings and comments.
v6.0.1Compare Source
Bug fixes
Avoid completing variables/keywords in property or definition positions.
Fix a bug that broke local variable completion if JavaScript was parsed an overlay in an outer language.
v6.0.0Compare Source
Breaking changes
Update dependencies to 6.0.0
v0.20.1Compare Source
New features
localCompletionSource(included in the support extensions returned fromjavascript) now provides a way to complete locally-defined names.v0.20.0Compare Source
New features
The new
autoCloseTagsextension (included by default in thejavascriptlanguage extension whenjsxis configured) finishes JSX closing tags when you type a>or/character.codemirror/lang-json (@codemirror/lang-json)
v6.0.2Compare Source
Bug fixes
Add a .d.cts file to make TypeScript happy.
v6.0.1Compare Source
Bug fixes
Make sure the language object has a name.
v6.0.0Compare Source
Breaking changes
Update dependencies to 6.0.0
v0.20.0Compare Source
Breaking changes
Update dependencies to 0.20.0
codemirror/lang-markdown (@codemirror/lang-markdown)
v6.5.0Compare Source
New features
Add a variant of
insertNewlineContinueMarkupthat supports configuration options.v6.4.0Compare Source
New features
The new
pasteURLAsLinkextension allows you to paste URLs over a selection to quickly create a link.v6.3.4Compare Source
Bug fixes
Make sure header-based indentation is available even when Markdown isn't the editor's top-level language.
v6.3.3Compare Source
Bug fixes
Make
insertNewlineContinueMarkuptake effect even when at the end of a nested range of Markdown content.v6.3.2Compare Source
Bug fixes
Make Markdown-specific commands return false inside fenced code.
Fix an infinite loop caused by
insertNewlineContinueMarkup.v6.3.1Compare Source
Bug fixes
Fix an issue where
insertNewlineContinueMarkupdidn't work with the cursor directly after an HTML tag.v6.3.0Compare Source
New features
The new
htmlTagLanguageoption allows client code to configure which language is used to parse HTML tags in the document.v6.2.5Compare Source
Bug fixes
Disable folding for list nodes (since it will shadow the folding on the first list item).
v6.2.4Compare Source
Bug fixes
Starting at the third list item,
insertNewlineContinueMarkupwill now keep the tightness of the list, and only require two presses to clear an empty list item.v6.2.3Compare Source
Bug fixes
Support code folding for GFM tables.
v6.2.2Compare Source
Bug fixes
Fix a bug in
insertNewlineContinueMarkupthat caused it to put the cursor in the wrong place when the editor's line break was more than one character long.v6.2.1Compare Source
Bug fixes
Make
insertNewlineContinueMarkupanddeleteMarkupBackwarduse tabs for indentation when appropriate.v6.2.0Compare Source
New features
The markdown package now installs a completion source that completes HTML tags when in Markdown context.
v6.1.1Compare Source
Bug fixes
Fix the declaration of
comentTokenslanguage data for Markdown.Fix a bug in
deleteMarkupBackwardthat would cause it to delete pieces of continued paragraphs below list item markers.v6.1.0Compare Source
New features
Add support for folding entire sections from the header.
v6.0.5Compare Source
Bug fixes
Make sure task lists are indented correctly even when deeply nested.
v6.0.4Compare Source
Bug fixes
Fix an issue where nested task lists were indented too deeply.
v6.0.3Compare Source
Bug fixes
Add a
namevalue to the Markdown language object.v6.0.2Compare Source
Bug fixes
Improve
insertNewlineContinueMarkup's behavior in a fenced code block.v6.0.1Compare Source
Bug fixes
Ignore text after whitespace in code block metadata, when determining which language the block is.
v6.0.0Compare Source
Breaking changes
Update dependencies to 6.0.0
v0.20.1Compare Source
New features
The
codeLanguagesoption tomarkdownmay now be a function from an info string to a language.v0.20.0Compare Source
New features
insertNewlineContinueMarkupcan now continue task lists. Move highlighting information into @lezer/markdowncodemirror/lang-python (@codemirror/lang-python)
v6.2.1Compare Source
Bug fixes
Fix an issue where the indentation logic would too eagerly align lines to the body directly above them.
v6.2.0Compare Source
Bug fixes
Add an indentation rule for member expressions.
New features
Allow multi-line strings to be code-folded.
v6.1.7Compare Source
Bug fixes
Properly indent match/case statements.
v6.1.6Compare Source
Bug fixes
Improve the way indentation for the current body is preserved when inenting new lines.
v6.1.5Compare Source
Bug fixes
Properly indent
else:when attached to afororwhilestatement.v6.1.4Compare Source
Bug fixes
Explicitly declare dependencies on @lezer/common and @codemirror/state
v6.1.3Compare Source
Bug fixes
Fix a bug where blocks started after a wrapped argument list or similar construct were indented too far.
v6.1.2Compare Source
Bug fixes
Don't indent lines after a dedented comment line.
v6.1.1Compare Source
Bug fixes
Remove leftover log statements.
v6.1.0Compare Source
Configuration
📅 Schedule: Branch creation - "before 12pm on Wednesday" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.