src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.ts/lengthOfString
export function lengthOfString(str: string): Length {
	const lines = splitLines(str);
	return toLength(lines.length - 1, lines[lines.length - 1].length);
}