I use document.UndoRedo.StartGroup(DocumentModificationType.AutoReplace,ts.Token.TextRange); to replace text on the document top.
I scroll down way past the replaced text then press undo button which does undo the textrange but the caret does not goto the undone action.
How can I tell the caret to scrolltoview to the last undo/redo action?