Use existing getAllLines method.
Allow extensions to request cursorIndex.