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:
6.4.0
->6.8.0
6.1.3
->6.2.4
6.0.1
->6.2.0
6.4.1
->6.4.4
6.1.2
->6.1.9
6.4.0
->6.8.0
6.1.0
->6.2.2
6.2.3
->6.5.0
6.2.0
->6.2.1
6.7.3
->6.13.2
Release Notes
codemirror/autocomplete
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).
codemirror/commands
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.codemirror/lang-css
v6.2.0
Compare Source
Bug fixes
Explicitly list @lezer/common as a package dependency.
New features
Export
defineCSSCompletionSource
, which allows one to define a CSS-style completion source for dialects with their own variable syntax.v6.1.1
Compare Source
Bug fixes
Provide better completions when completing directly in a
Styles
top node.v6.1.0
Compare Source
New features
CSS completion can now complete variable names.
v6.0.2
Compare Source
Bug fixes
Fetch the available CSS property names in a way that works on Chrome.
codemirror/lang-html
v6.4.4
Compare Source
Bug fixes
Fix a bug where the completed tag names didn't take into account the parent node's declared children in the schema in some circumstances.
v6.4.3
Compare Source
Bug fixes
Fix a bug that could cause some nested language regions to be parsed multiple times.
v6.4.2
Compare Source
Bug fixes
Fix an issue where
autoCloseTags
would close self-closing tags when typed directly in front of a word.codemirror/lang-javascript
v6.1.9
Compare Source
Bug fixes
Make sure
scopeCompletionSource
doesn't try to complete property names that aren't simple identifier (such as numeric indices).v6.1.8
Compare Source
Bug fixes
Stop completing keywords after
.
tokens.v6.1.7
Compare Source
Bug fixes
Fix overeager JSX tag closing inside attribute values and in self-closing tags.
v6.1.6
Compare Source
Bug fixes
Fix a bug that allowed
autoCloseTags
to close JSX tags in JavaScript context.v6.1.5
Compare Source
Bug fixes
Make TypeScript object type syntax foldable.
v6.1.4
Compare Source
Bug fixes
Make sure code in JSX context can be commented correctly.
v6.1.3
Compare Source
Bug fixes
Fix auto-closing of JSX fragments.
codemirror/language
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.codemirror/lint
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.
codemirror/search
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.codemirror/state
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.codemirror/view
v6.13.2
Compare Source
Bug fixes
Fix an issue in scroll position stabilization for changes above the visible, where Chrome already does this natively and we ended up compensating twice.
v6.13.1
Compare Source
Bug fixes
Fix a bug where the cursor would in some circumstances be drawn on the wrong side of an inline widget.
Fix an issue where
scrollPastEnd
could cause the scroll position of editors that weren't in view to be changed unnecessarily.v6.13.0
Compare Source
Bug fixes
Forbid widget decoration side values bigger than 10000, to prevent them from breaking range ordering invariants.
Fix a bug where differences between widgets' estimated and actual heights could cause the editor to inappropriately move the scroll position.
Avoid another situation in which composition that inserts line breaks could corrupt the editor DOM.
New features
Inline widgets may now introduce line breaks, if they report this through the
WidgetType.lineBreaks
property.v6.12.0
Compare Source
Bug fixes
Remove an accidentally included
console.log
.New features
EditorViewConfig.dispatch
is now passed the view object as a second argument.v6.11.3
Compare Source
Bug fixes
Make sure pointer selection respects
EditorView.atomicRanges
.Preserve DOM widgets when their decoration type changes but they otherwise stay in the same place.
Fix a bug in
drawSelection
that could lead to invisible or incorrect selections for a blank line below a block widget.v6.11.2
Compare Source
Bug fixes
Fix a bug where the
crosshairCursor
extension could, when non-native key events were fired, trigger disruptive and needless view updates.Fix an Android issue where backspacing at the front of a line with widget decorations could replace those decorations with their text content.
Respect scroll margins when scrolling the target of drag-selection into view.
Validate selection offsets reported by the browser, to work around Safari giving us invalid values in some cases.
v6.11.1
Compare Source
Bug fixes
Don't preserve the DOM around a composition that spans multiple lines.
v6.11.0
Compare Source
New features
Gutters now support a
widgetMarker
option that can be used to add markers next to block widgets.v6.10.1
Compare Source
Bug fixes
Limit cursor height in front of custom placeholder DOM elements.
v6.10.0
Compare Source
Bug fixes
Fix a crash in
drawSelection
when a measured position falls on a position that doesn't have corresponding screen coordinates.Work around unhelpful interaction observer behavior that could cause the editor to not notice it was visible.
Give the cursor next to a line-wrapped placeholder a single-line height.
Make sure drop events below the editable element in a fixed-height editor get handled properly.
New features
Widget decorations can now define custom
coordsAtPos
methods to control the way the editor computes screen positions at or in the widget.v6.9.6
Compare Source
Bug fixes
Fix an issue where, when escape was pressed followed by a key that the editor handled, followed by tab, the tab would still move focus.
Fix an issue where, in some circumstances, the editor would ignore text changes at the end of a composition.
Allow inline widgets to be updated to a different length via
updateDOM
.v6.9.5
Compare Source
Bug fixes
Avoid disrupting the composition in specific cases where Safari invasively changes the DOM structure in the middle of a composition.
Fix a bug that prevented
destroy
being called on hover tooltips.Fix a bug where the editor could take focus when content changes required it to restore the DOM selection.
Fix height layout corruption caused by a division by zero.
Make sure styles targeting the editor's focus status are specific enough to not cause them to apply to editors nested inside another focused editor. This will require themes to adjust their selection background styles to match the new specificity.
v6.9.4
Compare Source
Bug fixes
Make the editor scroll while dragging a selection near its sides, even if the cursor isn't outside the scrollable element.
Fix a bug that interrupted composition after widgets in some circumstances on Firefox.
Make sure the last change in a composition has its user event set to
input.type.compose
, even if thecompositionend
event fires before the changes are applied.Make it possible to remove additional selection ranges by clicking on them with ctrl/cmd held, even if they aren't cursors.
Keep widget buffers between widgets and compositions, since removing them confuses IME on macOS Firefox.
Fix a bug where, for DOM changes that put the selection in the middle of the changed range, the editor incorrectly set its selection state.
Fix a bug where
coordsAtPos
could return a coordinates before the line break when querying a line-wrapped position with a positiveside
.v6.9.3
Compare Source
Bug fixes
Work around a Firefox issue that caused
coordsAtPos
to return rectangles with the full line height on empty lines.Opening a context menu by clicking below the content element but inside the editor now properly shows the browser's menu for editable elements.
Fix an issue that broke composition (especially of Chinese IME) after widget decorations.
Fix an issue that would cause the cursor to jump around during compositions inside nested mark decorations.
v6.9.2
Compare Source
Bug fixes
Work around a Firefox CSS bug that caused cursors to stop blinking in a scrolled editor.
Fix an issue in
drawSelection
where the selection extended into the editor's padding.Fix pasting of links copied from iOS share sheet.
v6.9.1
Compare Source
Bug fixes
Improve the way
posAtCoords
picks the side of a widget to return by comparing the coordinates the center of the widget.Fix an issue where transactions created for the
focusChangeEffect
facet were sometimes not dispatched.v6.9.0
Compare Source
Bug fixes
Fix an issue where inaccurate estimated vertical positions could cause the viewport to not converge in line-wrapped editors.
Don't suppress double-space to period conversion when autocorrect is enabled.
Make sure the measuring code notices when the scaling of the editor is changed, and does a full measure in that case.
New features
The new
EditorView.focusChangeEffect
facet can be used to dispatch a state effect when the editor is focused or blurred.v6.8.1
Compare Source
Bug fixes
Fix an issue where tooltips that have their height reduced have their height flicker when scrolling or otherwise interacting with the editor.
v6.8.0
Compare Source
Bug fixes
Fix a regression that caused clicking on the scrollbar to move the selection.
Fix an issue where focus or blur event handlers that dispatched editor transactions could corrupt the mouse selection state.
Fix a CSS regression that prevented the drop cursor from being positioned properly.
New features
WidgetType.updateDOM
is now passed the editor view object.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.