For #76442
This commit is contained in:
parent
8ba9778a2e
commit
6af7cde5c0
1 changed files with 1 additions and 1 deletions
|
@ -1118,7 +1118,7 @@ function textSearchResultToMatches(rawMatch: ITextSearchMatch, fileMatch: FileMa
|
||||||
const previewLines = rawMatch.preview.text.split('\n');
|
const previewLines = rawMatch.preview.text.split('\n');
|
||||||
if (Array.isArray(rawMatch.ranges)) {
|
if (Array.isArray(rawMatch.ranges)) {
|
||||||
return rawMatch.ranges.map((r, i) => {
|
return rawMatch.ranges.map((r, i) => {
|
||||||
const previewRange: ISearchRange = rawMatch.preview.matches[i];
|
const previewRange: ISearchRange = (<ISearchRange[]>rawMatch.preview.matches)[i];
|
||||||
return new Match(fileMatch, previewLines, previewRange, r);
|
return new Match(fileMatch, previewLines, previewRange, r);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue