mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-12-04 15:51:04 +00:00
ParseContext.changes() in @codemirror/language handed the parent context's skipped array to the child whenever there was nothing to remap, so a speculative state.update() (paste reindent, Shift+Enter, Move Line, Complete Statement) let StreamLanguage's skipUntilInView push a range past the live document's end into the live state's array. Applying the real transaction then threw RangeError in ChangeSet.mapPos and broke the editor for .properties and other StreamLanguage files longer than the viewport. The patch gives every child context its own skipped array. Closes #7989 Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>