Interface TextSearchMatchPreview

A preview of the text result.

interface TextSearchMatchPreview {
    matches: Range | Range[];
    text: string;
}

Properties

Properties

matches: Range | Range[]

The Range within text corresponding to the text of the match. The number of matches must match the TextSearchMatch's range property.

text: string

The matching lines of text, or a portion of the matching line that contains the match.