snippetState

State field that holds the currently active snippet, or null when no snippet is active.

As upstream: a snippet set by a transaction is taken as is (its positions already refer to that transaction's document), an active one is mapped through later changes and ends when a field's text is deleted, and it also ends when the selection moves outside the current field.