You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix intermittent loss of validation error highlighting in CodeAutocompleteField
The suggestion-highlight lifecycle removed all marks including the
validation error marker: resetting the highlight cleared the whole
document, and the effect cleanup removed marks at line-local positions
although they were placed at offset-corrected positions. Mark removal
is now scoped to the mark class, the error marker is re-applied from
the latest validation result, and the initial validation effect depends
on the editor instance instead of a ref read during render.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
10
10
11
11
-`<Tooltip />`:
12
12
- Code markup inside tooltips was hardly readable because of low contrast.
13
+
-`<CodeAutocompleteField />`:
14
+
- Validation error highlighting was intermittently removed and not re-rendered: resetting the suggestion highlighting cleared all marks including the error marker, and its cleanup removed marks at wrong positions on multi-line content. Mark removal is now scoped to the mark class.
0 commit comments