1
>
/*---------------------------------------------------------------------------------------------
searchHelpers.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import { Range } from '../../../../editor/common/core/range.js';
7
>
import { FindMatch, ITextModel } from '../../../../editor/common/model.js';
8
>
import { ITextSearchPreviewOptions, TextSearchMatch, ITextSearchResult, ITextSearchMatch, ITextSearchQuery } from './search.js';
9
>
10
function editorMatchToTextSearchResult(matches: FindMatch[], model: ITextModel, previewOptions?: ITextSearchPreviewOptions): TextSearchMatch {
11
const firstLine = matches[0].range.startLineNumber;