I knew that was going to be confusing. I'll add some docs about it in both expandSelectionTo and extendSelectionTo. Basically, "extend" moves the extentOffset while holding the baseOffset fixed, but "expand" grows the selection to include the given position. If you try cmd+shift+left/right on a Mac, that's expand, while option+shift+up/down is extend.