Theia API Documentation v1.77.0
    Preparing search index...
    • Converts a Yjs text delta into edits addressed against the pre-edit document.

      A Yjs delta walks two cursors at once: retain advances in both the old and the new document, insert advances only in the new one, and delete advances only in the old one. The edits produced here are collected and applied together against the pre-edit model, so every offset must address that same, unchanged document. The cursor therefore advances on retain and delete and stands still on insert.

      Non-string inserts (embeds) carry no text for a plain text model and are skipped.

      Parameters

      Returns YjsDeltaEdit[]