360
this.previewText = result;
361
} else {
362
>
const firstMatchLine = Array.isArray(ranges) ? ranges[0].startLineNumber : ranges.startLineNumber;
search.ts
363
>
364
>
const rangeLocs = mapArrayOrNot(ranges, r => ({
365
>
preview: new SearchRange(r.startLineNumber - firstMatchLine, r.startColumn, r.endLineNumber - firstMatchLine, r.endColumn),
366
>
source: r
367
>
}));
368
>
369
>
this.rangeLocations = Array.isArray(rangeLocs) ? rangeLocs : [rangeLocs];
370
>
this.previewText = text;
371
>
}
372
}
373
}