提交 6af7cde5 编写于 作者: R Rob Lourens

For #76442

上级 8ba9778a
......@@ -1118,7 +1118,7 @@ function textSearchResultToMatches(rawMatch: ITextSearchMatch, fileMatch: FileMa
const previewLines = rawMatch.preview.text.split('\n');
if (Array.isArray(rawMatch.ranges)) {
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);
});
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册