162
163
public static findMatches(model: TextModel, searchParams: SearchParams, searchRange: Range, captureMatches: boolean, limitResultCount: number): FindMatch[] {
165
>
if (!searchData) {
166
return [];
167
}
169
>
if (searchData.regex.multiline) {
170
return this._doFindMatchesMultiline(model, searchRange, new Searcher(searchData.wordSeparators, searchData.regex), captureMatches, limitResultCount);
171
}
172
return this._doFindMatchesLineByLine(model, searchRange, searchData, captureMatches, limitResultCount);
174
175
/**