Trevixal API
    Preparing search index...

    Suggestion mode: while enabled, edits become attributed suggestions instead of direct changes, deleted text stays with a deletion mark, typed text carries an insertion mark. Accept/reject one or all.

    v0 scope (see ADR-0008): single-textblock edits are tracked; structural transactions (Enter, block joins, wraps) apply directly.

    Index
    • get hasSuggestions(): boolean

      Returns boolean

    • get isEnabled(): boolean

      Returns boolean

    • Accept a specific set of suggestion ranges (e.g. one author's).

      Parameters

      Returns boolean

    • Returns boolean

    • Accept the suggestion span containing position.

      Parameters

      • position: Position

      Returns boolean

    • Returns void

    • Returns void

    • Subscribe to suggestion mode being switched on or off. Returns a disposer.

      Switching modes changes no document, so it raises no transaction, and anything watching the editor alone never hears about it. A review bar built that way sits reading "off" while every keystroke is in fact being recorded as a suggestion, which is the worst way for this feature to be wrong, because the user believes their edits are going in directly.

      Parameters

      • listener: (enabled: boolean) => void

      Returns () => void

    • Returns boolean

    • Parameters

      • position: Position

      Returns boolean