Файли
openidea/e2e
audichuang 89a3f0951a fix(editor): stop typing over a select-all from adding an empty last line (#8317)
Selecting all text and typing left an extra empty line at the end: always for files without a final newline, and for files with one when the browser took more than 50 ms to apply the edit (the intermittent e2e/cornerInset.spec.ts failure). @codemirror/view 6.44's DOMReader read a line break after the only remaining line because its stale tile still had breakAfter set. The patch applies CodeMirror's upstream fix (view commit 45438ff87c), which only adds the break when content follows, until a release includes it.

Co-authored-by: audichuang <[email protected]>
2026-12-06 21:47:12 +08:00
..