function tryParseFile()

in src/emmetHelper.ts [1009:1016]


function tryParseFile(strPath: URI, dataStr: string): any {
	let errors: JSONC.ParseError[] = [];
	const json = JSONC.parse(dataStr, errors);
	if (errors.length) {
		throw new Error(`Found error ${JSONC.printParseErrorCode(errors[0].error)} while parsing the file ${strPath} at offset ${errors[0].offset}`);
	}
	return json;
}