src/vs/workbench/services/search/node/ripgrepTextSearchEngine.ts/bytesOrTextToString
function bytesOrTextToString(obj: any): string {
	return obj.bytes ?
		Buffer.from(obj.bytes, 'base64').toString() :
		obj.text;
}