src/vs/editor/common/diff/smartLinesDiffComputer.ts/getFirstNonBlankColumn
function getFirstNonBlankColumn(txt: string, defaultValue: number): number {
	const r = strings.firstNonWhitespaceIndex(txt);
	if (r === -1) {
		return defaultValue;
	}
	return r + 1;
}