export async function registerYamlSchemaSupport()

in client/src/yaml-support/yaml-schema.ts [21:30]


export async function registerYamlSchemaSupport(): Promise<void> {
	schema.loadSchemaFromRaw();
	const yamlPlugin: any = await activateYamlExtension();
	if (!yamlPlugin || !yamlPlugin.registerContributor) {
		// activateYamlExtension has already alerted to users for errors.
		return;
	}
	// register for cloudformation schema provider
	yamlPlugin.registerContributor(CLOUDFORMATION_SCHEMA, requestYamlSchemaUriCallback, requestYamlSchemaContentCallback);
}