src/vs/editor/browser/controller/textAreaInput.ts/TextAreaWrapper/getSelectionEnd
class TextAreaWrapper:	public getSelectionEnd(): number {
		return this._actual.selectionDirection === 'backward' ? this._actual.selectionStart : this._actual.selectionEnd;
	}