This change is also part of making sure that we get `documentChange` events for reverts.