extensions/typescript-language-features/src/languageFeatures/tagClosing.ts/register
export function register(
	selector: DocumentSelector,
	modeId: string,
	client: ITypeScriptServiceClient,
) {
	return conditionalRegistration([
		requireMinVersion(client, TagClosing.minVersion),
		requireConfiguration(modeId, 'autoClosingTags'),
		requireActiveDocument(selector.syntax)
	], () => new TagClosing(client));
}