src/vs/workbench/browser/parts/editor/textEditor.ts/BaseTextEditor/getSelection
class BaseTextEditor:	getSelection(): IEditorPaneSelection | undefined {
		const codeEditor = getCodeEditor(this.editorControl);
		if (codeEditor) {
			const selection = codeEditor.getSelection();
			if (selection) {
				return new TextEditorPaneSelection(selection);
			}
		}

		return undefined;
	}