Skip to content

v0.12.0

Choose a tag to compare

@lynnswap lynnswap released this 11 Jun 14:53
· 11 commits to main since this release
0230895

SyntaxEditorUI v0.12.0

Breaking Changes

  • Rename SyntaxEditorColorTheme to SyntaxEditorTheme; update references to built-in presets and custom themes accordingly.
  • Rename SyntaxEditorModel.colorTheme and the colorTheme: initializer argument to theme and theme:.
  • Require custom SyntaxEditorTheme values to provide a font. Editor font size now comes from the theme, with fontSizeDelta applied relative to that theme font.

Improvements

  • Move Swift and Objective-C semantic highlighting work off the typing path and keep incremental refreshes local to edited lines where possible, reducing latency for normal edits, large edits, and paste-sized updates.
  • Rework highlight rendering around normalized color/font snapshots so UIKit and AppKit preserve visible syntax colors and fonts while async highlights, theme changes, and font-size changes settle.
  • Improve Swift and Objective-C semantic refresh/indexing so declaration, scope, member, macro, typedef, and local-shadow edits refresh affected references without stale overlays.

Bug Fixes

  • Keep UIKit/AppKit highlights valid after rapid edits, cancelled highlight work, EOF appends, CR line edits, multi-range edits, and theme/font changes.
  • Preserve additional Objective-C semantic contexts, including block/function typedefs, macro argument types, method parameter types, fast enumeration types, nested typedefs, ivar types, and parenthesized typedefs.

Migration Notes

  • See the v0.12.0 migration section in README.md for the exact API rename and custom theme font requirements.

Full Changelog: v0.11.0...v0.12.0