Bump kodemirror 0.2.0 → 0.3.2 + enable editor soft-wrap#30
Merged
Conversation
Resolves #10 (long lines overflowed the editor — no wrap, no horizontal scroll). Wires the opt-in `lineWrapping` extension into the editor so long lines soft-wrap to the editor width (user's chosen behavior for #10). Targets kodemirror 0.3.2 (not 0.3.0/0.3.1, which are dead): 0.3.0 had an editor-mount regression (kodemirror #92 — HoverTooltipPlugin read the session coroutineScope before attach, crashing every editor mount via lint's hoverTooltip); 0.3.2 ships the fix. Transitively moves lsp RC → 1.0.0 stable. Verified: full clean :e2e:test green (incl. the 7 editor-mount tests that failed on 0.3.0) + spotless. Fixes #10
monkopedia-reviewer
approved these changes
Jun 2, 2026
Collaborator
monkopedia-reviewer
left a comment
There was a problem hiding this comment.
Tier-2 UX signoff approved by Monkopedia. kodemirror 0.3.2 + editor soft-wrap (fixes #10); e2e green incl. the 7 editor-mount tests that failed on 0.3.0.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Resolves #10 — long lines overflowed the editor (neither wrapped nor horizontally scrolled). Two changes in one file each:
gradle/libs.versions.toml:kodemirror = "0.2.0"→"0.3.2".EditorPane.kt: wire the opt-inlineWrappingextension into the editor so long lines soft-wrap to the editor width (the user's chosen behavior for Very long lines overflow the editor — no wrap, no horizontal scroll #10).Why 0.3.2 (not 0.3.0/0.3.1)
0.3.0 introduced an editor-mount regression (kodemirror #92):
HoverTooltipPluginread the sessioncoroutineScopebefore it was attached, crashing every editor mount that useslinter(we do, via lint'shoverTooltip). That failed 7 of our e2e tests. kodemirror shipped the fix in 0.3.2 (0.3.1 failed to publish). Transitively movescom.monkopedia.lsp:lspRC → 1.0.0 stable.Validation
:e2e:testgreen on 0.3.2 — including the 7 editor-mount tests (Theme/Keymap, Target, Save) that failed on 0.3.0.:frontend:spotlessKotlinCheckclean.Fixes #10