This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Update CodeMirror to v6 (major) #305
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/major-codemirror
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
June 15, 2022 06:27
a9cb3cd
to
2c0e396
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
3 times, most recently
from
June 23, 2022 12:24
459a51f
to
6bc718f
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
3 times, most recently
from
July 4, 2022 10:37
7c22657
to
11e9f2f
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
July 8, 2022 12:06
3176e8c
to
b0ebdf2
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
from
September 25, 2022 21:21
b0ebdf2
to
45fa847
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
from
November 20, 2022 08:19
45fa847
to
e809255
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
March 23, 2023 17:54
d090a92
to
d0d1c74
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
April 17, 2023 17:04
fc15597
to
0fe7a5c
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
from
May 28, 2023 08:52
0fe7a5c
to
6024263
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
June 12, 2023 06:50
ddcf8ed
to
3645744
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
June 13, 2023 17:12
f89ff71
to
27ab39c
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
from
June 23, 2023 10:30
27ab39c
to
c21c408
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
July 6, 2023 10:38
f08e8b9
to
702b01f
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
5 times, most recently
from
July 20, 2023 18:55
6db4767
to
f0892f2
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
from
August 1, 2023 11:34
f0892f2
to
d9038db
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
April 19, 2024 20:07
b5ef866
to
009e562
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
April 30, 2024 06:08
ac12ecc
to
8fba1ec
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
from
May 15, 2024 16:53
8fba1ec
to
7092a54
Compare
|
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
May 29, 2024 14:07
4f2b867
to
2809a17
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
3 times, most recently
from
June 4, 2024 15:05
425b3a0
to
639fa58
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
June 12, 2024 22:15
c2b3327
to
69f1ea4
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
June 21, 2024 12:09
1ac2bd4
to
b9e8ee0
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
3 times, most recently
from
July 3, 2024 15:26
ab8db2e
to
562ffab
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
3 times, most recently
from
July 22, 2024 23:28
297978a
to
71d9b21
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
2 times, most recently
from
July 29, 2024 12:33
b895e15
to
a4edf77
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
3 times, most recently
from
August 12, 2024 11:40
7a44143
to
65e7b15
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
from
August 15, 2024 22:15
65e7b15
to
a4318ac
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
from
August 24, 2024 10:53
a4318ac
to
961791b
Compare
renovate
bot
force-pushed
the
renovate/major-codemirror
branch
from
August 31, 2024 16:29
961791b
to
0577fe2
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
0 participants
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.20.1
->6.18.0
0.20.0
->6.1.1
0.20.0
->6.6.1
0.20.0
->6.10.2
0.20.0
->6.4.1
0.20.2
->6.8.1
0.20.1
->6.5.6
0.20.0
->6.4.1
0.20.4
->6.33.0
Release Notes
codemirror/autocomplete (@codemirror/autocomplete)
v6.18.0
Compare 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
abort
handler for a completion query, you can now use theonDocChange
option to indicate that your query should be aborted as soon as the document changes while it is running.v6.17.0
Compare Source
Bug fixes
Fix an issue where completions weren't properly reset when starting a new completion through
activateOnCompletion
.New features
CompletionContext
objects now have aview
property that holds the editor view when the query context has a view available.v6.16.3
Compare Source
Bug fixes
Avoid adding an
aria-autocomplete
attribute to the editor when there are no active sources active.v6.16.2
Compare Source
Bug fixes
Allow backslash-escaped closing braces inside snippet field names/content.
v6.16.1
Compare Source
Bug fixes
Fix a bug where multiple backslashes before a brace in a snippet were all removed.
v6.16.0
Compare Source
New features
The new
activateOnCompletion
option allows autocompletion to be configured to chain completion activation for some types of completions.v6.15.0
Compare Source
New features
The new
filterStrict
option can be used to turn off fuzzy matching of completions.v6.14.0
Compare Source
New features
Completion results can now define a
map
method that can be used to adjust position-dependent information for document changes.v6.13.0
Compare Source
New features
Completions may now provide 'commit characters' that, when typed, commit the completion before inserting the character.
v6.12.0
Compare Source
Bug fixes
Make sure snippet completions also set
userEvent
toinput.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
activateOnTypingDelay
option allows control over the debounce time before the completions are queried when the user types.v6.11.1
Compare Source
Bug fixes
Fix a bug that caused typing over closed brackets after pressing enter to still not work in many situations.
v6.11.0
Compare 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
addToOptions
are now given access to the editor view.v6.10.2
Compare Source
Bug fixes
Fix a bug that caused
updateSyncTime
to always delay the initial population of the tooltip.v6.10.1
Compare 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.0
Compare Source
New features
The new autocompletion configuration option
updateSyncTime
allows control over how long fast sources are held back waiting for slower completion sources.v6.9.2
Compare Source
Bug fixes
Fix a bug in
completeAnyWord
that could cause it to generate invalid regular expressions and crash.v6.9.1
Compare 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.0
Compare Source
New features
Completions may now provide a
displayLabel
property that overrides the way they are displayed in the completion list.v6.8.1
Compare Source
Bug fixes
acceptCompletion
now returns false (allowing other handlers to take effect) when the completion popup is open but disabled.v6.8.0
Compare Source
New features
The result of
Completion.info
may now include adestroy
method that will be called when the tooltip is removed.v6.7.1
Compare Source
Bug fixes
Fix a bug that cause incorrect ordering of completions when some results covered input text and others didn't.
v6.7.0
Compare Source
New features
The new
hasNextSnippetField
andhasPrevSnippetField
functions can be used to figure out if the snippet-field-motion commands apply to a given state.v6.6.1
Compare 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.0
Compare Source
Bug fixes
Fix a bug in
insertCompletionText
that caused it to replace the wrong range when a result set'sto
fell after the cursor.New features
Functions returned by
snippet
can now be called without a completion object.v6.5.1
Compare Source
Bug fixes
Keep completions open when interaction with an info tooltip moves focus out of the editor.
v6.5.0
Compare Source
Bug fixes
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.
New features
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.v6.4.2
Compare Source
Bug fixes
Fix a bug where the apply method created by
snippet
didn't add apickedCompletion
annotation to the transactions it created.v6.4.1
Compare Source
Bug fixes
Don't consider node names in trees that aren't the same language as the one at the completion position in
ifIn
andifNotIn
.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.0
Compare 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
tooltipClass
option to autocompletion can now be used to add additional CSS classes to the completion tooltip.v6.3.4
Compare Source
Bug fixes
Fix an issue where completion lists could end up being higher than the tooltip they were in.
v6.3.3
Compare Source
Bug fixes
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.
v6.3.2
Compare Source
Bug fixes
Fix a regression that could cause the completion dialog to stick around when it should be hidden.
v6.3.1
Compare Source
Bug fixes
Fix a regression where transactions for picking a completion (without custom
apply
method) no longer had thepickedCompletion
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.v6.3.0
Compare Source
New features
Close bracket configuration now supports a
stringPrefixes
property that can be used to allow autoclosing of prefixed strings.v6.2.0
Compare Source
New features
Autocompletion now takes an
interactionDelay
option that can be used to control the delay between the time where completion opens and the time where commands likeacceptCompletion
affect it.v6.1.1
Compare Source
Bug fixes
Fix a bug that prevented transactions produced by
deleteBracketPair
from 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.0
Compare Source
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 beforeacceptCompletion
does anything.v6.0.4
Compare Source
Bug fixes
Remove a leftover
console.log
in bracket closing code.v6.0.3
Compare Source
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.v6.0.2
Compare Source
Bug fixes
Declare package dependencies as peer dependencies as an attempt to avoid duplicated package issues.
v6.0.1
Compare Source
Bug fixes
Support escaping
${
or#{
in snippets.v6.0.0
Compare Source
Bug fixes
Scroll the cursor into view when inserting a snippet.
v0.20.3
Compare Source
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.v0.20.2
Compare Source
New features
The package now exports an
insertCompletionText
helper that implements the default behavior for applying a completion.codemirror/collab (@codemirror/collab)
v6.1.1
Compare Source
Bug fixes
Fix an issue where the configuration process raised an error when multiple instances of the
collab
extensions were added.v6.1.0
Compare Source
New features
The new
rebaseUpdates
function can be used by a collaborative editing server to accept updates even if they apply to an old document version.receiveUpdates
is now able to handle updates that were rebased by the server.v6.0.0
Compare Source
Breaking changes
Update dependencies to 6.0.0
codemirror/commands (@codemirror/commands)
v6.6.1
Compare 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.0
Compare Source
New features
The new
toggleTabFocusMode
andtemporarilySetTabFocusMode
commands 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.0
Compare Source
New features
The
insertNewlineKeepIndent
command inserts a newline along with the same indentation as the line before.v6.4.0
Compare Source
Bug fixes
Fix an issue where
deleteLine
sometimes leaves the cursor on the wrong line.New features
The new
deleteCharBackwardStrict
command just deletes a character, without further smart behavior around indentation.v6.3.3
Compare Source
Bug fixes
Fix an issue causing cursor motion commands to not dispatch a transaction when the change only affects cursor associativity.
v6.3.2
Compare Source
Bug fixes
Fix a regression that caused
deleteCharBackward
to sometimes delete a large chunk of text.v6.3.1
Compare Source
Bug fixes
When undoing, store the selection after the undone change with the redo event, so that redoing restores it.
deleteCharBackward
will no longer delete variant selector characters as separate characters.v6.3.0
Compare Source
Bug fixes
Make it possible for
selectParentSyntax
to 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
deleteLineBoundaryForward
anddeleteLineBoundaryBackward
commands delete to the start/end of the line or the next line wrapping point.v6.2.5
Compare Source
Bug fixes
Make
insertNewlineAndIndent
properly 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
insertNewlineAndIndent
that would delete text between brackets if it had no corresponding AST node.v6.2.4
Compare Source
Bug fixes
The by-subword motion commands now properly treat dashes, underscores, and similar as subword separators.
v6.2.3
Compare Source
Bug fixes
Block commenting the selection no longer includes indentation on the first line.
v6.2.2
Compare Source
Bug fixes
Fix a bug where line commenting got confused when commenting a range that crossed language boundaries.
v6.2.1
Compare Source
Bug fixes
Keep cursor position stable in
cursorPageUp
/cursorPageDown
when there are panels or other scroll margins active.Make sure
toggleComment
doesn't get thrown off by local language nesting, by fetching the language data for the start of the selection line.v6.2.0
Compare Source
New features
The new
joinToEvent
history configuration option allows you to provide custom logic that determines whether a new transaction is added to an existing history event.v6.1.3
Compare 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.2
Compare 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.1
Compare 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.0
Compare 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
/Right
andselectLineBoundaryLeft
/Right
commands allow directional motion to line boundaries.v6.0.1
Compare Source
Bug fixes
Announce to the screen reader when the selection is deleted.
Also bind Ctrl-Shift-z to redo on Linux.
v6.0.0
Compare Source
Bug fixes
Fix a bug where by-page selection commands sometimes moved one line too far.
codemirror/language (@codemirror/language)
v6.10.2
Compare Source
Bug fixes
Fix an infinite loop that could occur when enabling
bidiIsolates
in documents with both bidirectional text and very long lines.v6.10.1
Compare Source
Bug fixes
Fix an issue where, when a lot of code is visible in the initial editor, the bottom bit of code is shown without highlighting for one frame.
v6.10.0
Compare Source
New features
The new
bidiIsolates
extension can be used to wrap syntactic elements where this is appropriate in an element that isolates their text direction, avoiding weird ordering of neutral characters on direction boundaries.v6.9.3
Compare Source
Bug fixes
Fix an issue in
StreamLanguage
where it ran out of node type ids if you repeatedly redefined a language with the same token table.v6.9.2
Compare Source
Bug fixes
Allow
StreamParser
tokens get multiple highlighting tags.v6.9.1
Compare Source
Bug fixes
Indentation now works a lot better in mixed-language documents that interleave the languages in a complex way.
Code folding is now able to pick the right foldable syntax node when the line end falls in a mixed-parsing language that doesn't match the target node.
v6.9.0
Compare Source
Bug fixes
Make
getIndentation
return null, rather than 0, when there is no syntax tree available.New features
The new
preparePlaceholder
option tocodeFolding
makes it possible to display contextual information in a folded range placeholder widget.v6.8.0
Compare Source
New features
The new
baseIndentFor
method inTreeIndentContext
can be used to find the base indentation for an arbitrary node.v6.7.0
Compare Source
New features
Export
DocInput
class for feeding editor documents to a Lezer parser.v6.6.0
Compare Source
New features
Syntax-driven language data queries now support sublanguages, which make it possible to return different data for specific parts of the tree produced by a single language.
v6.5.0
Compare Source
Bug fixes
Make indentation for stream languages more reliable by having
StringStream.indentation
return overridden indentations from the indent context.New features
The
toggleFold
command folds or unfolds depending on whether there's an existing folded range on the current line.indentUnit
now accepts any (repeated) whitespace character, not just spaces and tabs.v6.4.0
Compare Source
New features
The
bracketMatchingHandle
node prop can now be used to limit bracket matching behavior for larger nodes to a single subnode (for example the tag name of an HTML tag).v6.3.2
Compare Source
Bug fixes
Fix a bug that caused
ensureSyntaxTree
to return incomplete trees when using a viewport-aware parser likeStreamLanguage
.v6.3.1
Compare Source
Bug fixes
Make syntax-based folding include syntax nodes that start right at the end of a line as potential fold targets.
Fix the
indentService
protocol to allow a distinction between declining to handle the indentation and returning null to indicate the line has no definite indentation.v6.3.0
Compare Source
New features
HighlightStyle
objects now have aspecs
property holding the tag styles that were used to define them.Language
objects now have aname
field holding the language name.v6.2.1
Compare Source
Bug fixes
Fix a bug where
bracketMatching
would incorrectly match nested brackets in syntax trees that put multiple pairs of brackets in the same parent node.Fix a bug that could cause
indentRange
to loop infinitely.v6.2.0
Compare Source
Bug fixes
Fix a bug that prevented bracket matching to recognize plain brackets inside a language parsed as an overlay.
New features
The
indentRange
function provides an easy way to programatically auto-indent a range of the document.v6.1.0
Compare Source
New features
The
foldState
field is now public, and can be used to serialize and deserialize the fold state.v6.0.0
Compare Source
New features
The
foldingChanged
option tofoldGutter
can now be used to trigger a recomputation of the fold markers.v0.20.2
Compare Source
Bug fixes
List style-mod as a dependency.
v0.20.1
Compare Source
Bug fixes
Make sure
all
styles in the CSS generated for aHighlightStyle
have a lower precedence than the other rules defined for the style. Use a shorthand propertycodemirror/legacy-modes (@codemirror/legacy-modes)
v6.4.1
Compare Source
Bug fixes
Stop treating closing brackets as brackets in the Common Lisp mode.
Fix a bug where the Stylus mode would crash when queried for indentation.
v6.4.0
Compare Source
Bug fixes
Only match Solr operator words when they are upper-case.
Fix an infinite loop when tokenizing heredoc strings in the Crystal mode.
New features
Add the old Pug mode.
v6.3.3
Compare Source
Bug fixes
In Shell mode, don't allow spaces in heredoc tokens.
v6.3.2
Compare Source
Bug fixes
Fix tokenizing of character literals in the Scala mode.
v6.3.1
Compare Source
Bug fixes
In JavaScript, properly parse keywords like
static
when in front of a private property.v6.3.0
Compare Source
New features
Add the old PegJS mode.
v6.2.0
Compare Source
Bug fixes
Include type declarations for mode/simple-mode.js.
New features
Include a name for each mode in the stream parser objects.
v6.1.0
Compare Source
Bug fixes
Add structured concurrency keywords to the Swift mode. Update readme to follow interface changes
New features
Adds the Sass mode from CodeMirror 5.
v6.0.0
Compare Source
Bug fixes
Add line comment syntax metadata to the Toml mode.
codemirror/lint (@codemirror/lint)
v6.8.1
Compare Source
Bug fixes
Make lint markers non-inclusive again, since having them that way causes more issues than it solves.
v6.8.0
Compare Source
New features
The new
autoPanel
option can be used to make the panel automatically appear when diagnostics are added and close when no diagnostics are left.v6.7.1
Compare Source
Bug fixes
Don't perform an additional superfluous timed lint run after
forceLinting
has been called.v6.7.0
Compare Source
New features
The
renderMessage
function is now called with the editor view as first argument.v6.6.0
Compare Source
New features
The new
hideOn
configuration option can be used to control in what circumstances lint tooltips get hidden by state changes.v6.5.0
Compare Source
Bug fixes
Make lint mark decorations inclusive, so that they are applied even if the marked content is replaced by a widget decoration.
New features
linter
can now be called with null as source to only provide a configuration.markerFilter
andtooltipFilter
function now get passed the current editor state.v6.4.2
Compare Source
Bug fixes
Make sure scrolling diagnostic into view in the panel works when the editor is scaled.
v6.4.1
Compare Source
Bug fixes
Fix a crash that could occur when a view was reconfigured in a way that removed the lint extension.
v6.4.0
Compare Source
New features
Diagnostics can now use
"hint"
as a severity level.Diagnostics can now set a
markClass
property to add an additional CSS class to the text marked by the diagnostic.v6.3.0
Compare Source
New features
A new
previousDiagnostic
command can be used to move back through the active diagnostics.v6.2.2
Compare Source
Bug fixes
Make sure lint gutter tooltips are properly closed when the content of their line changes.
v6.2.1
Compare Source
Bug fixes
The
linter
function now eagerly includes all lint-related extensions, rather than appending them to the configuration as-needed, so that turning off linting by clearing the compartment that contains it works properly.v6.2.0
Compare Source
New features
The new
needsRefresh
option tolinter
makes it possible to cause linting to be recalculated for non-document state changes.v6.1.1
Compare Source
Bug fixes
Give lint action buttons a pointer cursor style.
Fix a bug that caused diagnostic action callbacks to be called twice when their button was clicked.
v6.1.0
Compare Source
New features
The new
forEachDiagnostic
function can be used to iterate over the diagnostics in an editor state.v6.0.0
Compare Source
Breaking changes
Update dependencies to 6.0.0
v0.20.3
Compare Source
New features
Diagnostic objects may now have a
renderMessage
method to render their message to the DOM.codemirror/search (@codemirror/search)
v6.5.6
Compare Source
Bug fixes
Make
highlightSelectionMatches
include whitespace in the selection in its matches.Fix a bug that caused
SearchCursor
to return invalid ranges when matching astral chars that the the normalizer normalized to single-code-unit chars.v6.5.5
Compare Source
Bug fixes
Fix a bug that caused codes like
\n
to be unescaped in strings inserted via replace placeholders like$&
.Use the keybinding Mod-Alt-g for
gotoLine
to the search keymap, to make it usable for people whose keyboard layout uses Alt/Option-g to type some character.v6.5.4
Compare Source
Bug fixes
Fix a bug that caused whole-word search to incorrectly check for word boundaries in some circumstances.
v6.5.3
Compare Source
Bug fixes
The
gotoLine
dialog is now populated with the current line number when you open it.v6.5.2
Compare Source
Bug fixes
Don't use the very lowest precedence for match highlighting decorations.
v6.5.1
Compare Source
Bug fixes
Make
gotoLine
prefer to scroll the target line to the middle of the view.Fix an issue in
SearchCursor
where character normalization could produce nonsensical matches.v6.5.0
Compare Source
New features
The new
regexp
option tosearch
can be used to control whether queries have the regexp flag on by default.v6.4.0
Compare Source
Bug fixes
The
findNext
andfindPrevious
commands now select the search field text if that field is focused.New features
The
scrollToMatch
callback option now receives the editor view as a second parameter.v6.3.0
Compare Source
New features
The new
scrollToMatch
search option allows you to adjust the way the editor scrolls search matches into view.v6.2.3
Compare Source
Bug fixes
Fix a bug that hid the search dialog's close button when the editor was read-only.
v6.2.2
Compare Source
Bug fixes
When
literal
is off, \n, \r, and \t escapes are now also supported in replacement text.Make sure search dialog inputs don't get treated as form fields when the editor is created inside a form.
Fix a bug in
RegExpCursor
that would cause it to stop matching in the middle of a line when its current match position was equal to the length of the line.v6.2.1
Compare Source
Bug fixes
By-word search queries will now skip any result that had word characters both before and after a match boundary.
v6.2.0
Compare Source
New features
A new
wholeWord
search query flag can be used to limit matches to whole words.SearchCursor
andRegExpCursor
now support atest
parameter that can be used to ignore certain matches.v6.1.0
Compare Source
Bug fixes
Fix an infinite loop when the match position of a
RegExpCursor
ended up in the middle of an UTF16 surrogate pair.New features
The
literal
search option can now be set to make literal queries the default.The new
searchPanelOpen
function can be used to find out whether the search panel is open for a given state.v6.0.1
Compare Source
Bug fixes
findNext
andfindPrevious
will now return to the current result (and scroll it into view) if no other matches are found.v6.0.0
Compare Source
Bug fixes
Don't crash when a custom search panel doesn't have a field named 'search'.
Make sure replacements are announced to screen readers.
codemirror/state (@codemirror/state)
v6.4.1
Compare Source
Bug fixes
Fix an issue that caused widgets at the end of a mark decoration to be rendered in their own separate mark DOM element.
v6.4.0
Compare Source
Bug fixes
When multiple ranges in a single range set overlap, put the smaller ones inside the bigger ones, so that overlapping decorations don't break up each other's elements when coming from the same source.
New features
Selection and selection range
eq
methods now support an optional argument that makes them also compare by cursor associativity.The
RangeSet.join
function can be used to join multiple range sets together.v6.3.3
Compare Source
Bug fixes
Fix an issue where
Text.slice
andText.replace
could return objects with incorrectlength
when the givenfrom
/to
values were out of range for the text.v6.3.2
Compare Source
Bug fixes
Make sure transactions cannot add multiple selections when
allowMultipleSelections
is false.Fix a bug that caused
Text.iterLines
to not return empty lines at the end of the iterated ranges.v6.3.1
Compare Source
Bug fixes
Give the tag property on
FacetReader
the type of the output type parameter to force TypeScript to infer the proper type when converting fromFacet
toFacetReader
.v6.3.0
Compare Source
New features
The new
FacetReader
type provides a way to export a read-only handle to aFacet
.v6.2.1
Compare Source
Bug fixes
Fix an issue that could cause
RangeSet.compare
to miss changes in the set of active ranges around a point range.v6.2.0
Compare Source
New features
EditorSelection.range
now accepts an optional 4th argument to specify the bidi level of the range's head position.v6.1.4
Compare Source
Bug fixes
Fix a bug that caused the
openStart
value passed to span iterators to be incorrect around widgets in some circumstances.v6.1.3
Compare Source
Bug fixes
Avoid unnecessary calls to computed facet getters when a state is reconfigured but no dependencies of the computed facet change.
Fix an infinite loop in
RangeSet.eq
when theto
parameter isn't given.v6.1.2
Compare Source
Bug fixes
Fix an issue where, when multiple transaction extenders took effect, only the highest-precedence one was actually included in the transaction.
v6.1.1
Compare Source
Bug fixes
Fix a bug in range set span iteration that would cause decorations to be inappropriately split in some situations.
v6.1.0
Compare Source
Bug fixes
Refine change mapping to preserve insertions made by concurrent changes.
New features
The
enables
option toFacet.define
may now take a function, which will be called with the facet value to create the extensions.v6.0.1
Compare Source
Bug fixes
Fix a problem that cause
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.