diff --git a/src/vs/base/common/filters.ts b/src/vs/base/common/filters.ts index f0df6a97776637c5ab4320f83a31a92ecc4ed689..3b128cddf7b267677b942290a91e064a3a5e1116 100644 --- a/src/vs/base/common/filters.ts +++ b/src/vs/base/common/filters.ts @@ -386,7 +386,13 @@ export function createMatches(score: undefined | FuzzyScore): IMatch[] { if (mask > matches) { break; } else if (matches & mask) { - res.push({ start: pos, end: pos + 1 }); + const last = res[res.length - 1]; + + if (last && last.end === pos) { + last.end = pos + 1; + } else { + res.push({ start: pos, end: pos + 1 }); + } } } return res;