src/vs/platform/jsonschemas/common/jsonContributionRegistry.ts/normalizeId
function normalizeId(id: string) {
	if (id.length > 0 && id.charAt(id.length - 1) === '#') {
		return id.substring(0, id.length - 1);
	}
	return id;
}