extensions/typescript-language-features/src/languageFeatures/smartSelect.ts/register
export function register(
	selector: DocumentSelector,
	client: ITypeScriptServiceClient,
) {
	return conditionalRegistration([
		requireMinVersion(client, SmartSelection.minVersion),
	], () => {
		return vscode.languages.registerSelectionRangeProvider(selector.syntax, new SmartSelection(client));
	});
}