Result of a search operation

interface SearchMatch {
    contextAfter?: string[];
    contextBefore?: string[];
    filePath: string;
    line: string;
    lineNumber: number;
}

Properties

contextAfter?: string[]

Context lines after the match

contextBefore?: string[]

Context lines before the match

filePath: string

File path where match was found

line: string

The matched line content

lineNumber: number

Line number (1-based)