From 6af7cde5c09c4ed0100bcc253dce345bd50df877 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Wed, 3 Jul 2019 09:51:06 -0700 Subject: [PATCH] For #76442 --- src/vs/workbench/contrib/search/common/searchModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/search/common/searchModel.ts b/src/vs/workbench/contrib/search/common/searchModel.ts index 8ef400154d6..b843faa1662 100644 --- a/src/vs/workbench/contrib/search/common/searchModel.ts +++ b/src/vs/workbench/contrib/search/common/searchModel.ts @@ -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 = (rawMatch.preview.matches)[i]; return new Match(fileMatch, previewLines, previewRange, r); }); } else {