Searched refs:lineNumberWithMatch (Results 1 – 1 of 1) sorted by relevance
183 const lineNumberWithMatch = fileContent.substring(0, index).split(/\r\n?|\n/g).length - 1; constant184 const firstLineInContext = Math.max(0, lineNumberWithMatch - 2);185 const lastLineInContext = Math.min(lineNumberWithMatch + 2, fileLines.length);