// https://github.com/microsoft/vscode/issues/100569#issuecomment-738496991
if (data.submatches.length === 0) {
fullText.length
? { start: 0, end: 1, match: { text: fullText[0] } }
: { start: 0, end: 0, match: { text: '' } }
);
}
const ranges = coalesce(data.submatches.map((match, i) => {