File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/vs/workbench/services/search/common Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,16 @@ export const getFileResults = (
30
30
31
31
const results : ITextSearchResult [ ] = [ ] ;
32
32
33
- const patternIndecies : { matchStartIndex : number ; matchedText : string } [ ] = [ ] ;
33
+ const patternIndices : { matchStartIndex : number ; matchedText : string } [ ] = [ ] ;
34
34
35
35
let patternMatch : RegExpExecArray | null = null ;
36
36
let remainingResultQuota = options . remainingResultQuota ;
37
37
while ( remainingResultQuota >= 0 && ( patternMatch = pattern . exec ( text ) ) ) {
38
- patternIndecies . push ( { matchStartIndex : patternMatch . index , matchedText : patternMatch [ 0 ] } ) ;
38
+ patternIndices . push ( { matchStartIndex : patternMatch . index , matchedText : patternMatch [ 0 ] } ) ;
39
39
remainingResultQuota -- ;
40
40
}
41
41
42
- if ( patternIndecies . length ) {
42
+ if ( patternIndices . length ) {
43
43
const contextLinesNeeded = new Set < number > ( ) ;
44
44
const resultLines = new Set < number > ( ) ;
45
45
@@ -56,7 +56,7 @@ export const getFileResults = (
56
56
if ( prevLineEnd < text . length ) { lineRanges . push ( { start : prevLineEnd , end : text . length } ) ; }
57
57
58
58
let startLine = 0 ;
59
- for ( const { matchStartIndex, matchedText } of patternIndecies ) {
59
+ for ( const { matchStartIndex, matchedText } of patternIndices ) {
60
60
if ( remainingResultQuota < 0 ) {
61
61
break ;
62
62
}
You can’t perform that action at this time.
0 commit comments