Repository navigation
Versioning exception: this release intentionally includes incompatible Document API changes as a one-time patch exception.
Migration from 1.0.2:
- Replace
document.text()withdocument.text(None). Use.into_owned()when an ownedStringis required. - Use
document.text(Some(range))for selections. Invalid ranges return the full snapshot; valid empty ranges return an empty string. - Remove the encoding argument from
Document::position_to_offsetandDocument::offset_to_position. Each snapshot retains the negotiated encoding;document.position_encoding()exposes it for custom calculations.
Changed
- [breaking] Unify Document reads and retain position encoding (#330)
Other
- Reference both IDE extension templates (#327)