Expose a function to infer selection from cursor position

Related to
https://github.com/fsprojects/VisualFSharpPowerTools/issues/446