verimu 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +4 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17226,6 +17226,8 @@ function buildSnippet(params) {
|
|
|
17226
17226
|
const startLine = Math.max(1, centerLine - numContextLines);
|
|
17227
17227
|
const endLine = Math.min(lines.length || 1, centerLine + numContextLines);
|
|
17228
17228
|
const code = lines.slice(startLine - 1, endLine).join("\n");
|
|
17229
|
+
const highlightOffset = centerLine - startLine;
|
|
17230
|
+
const highlight = [highlightOffset, highlightOffset];
|
|
17229
17231
|
return {
|
|
17230
17232
|
filePath: (0, import_path14.relative)(projectPath, filePath).split(import_path14.sep).join("/"),
|
|
17231
17233
|
startLine,
|
|
@@ -17233,7 +17235,8 @@ function buildSnippet(params) {
|
|
|
17233
17235
|
code,
|
|
17234
17236
|
matchKind,
|
|
17235
17237
|
calledSymbol,
|
|
17236
|
-
confidence
|
|
17238
|
+
confidence,
|
|
17239
|
+
highlight
|
|
17237
17240
|
};
|
|
17238
17241
|
}
|
|
17239
17242
|
function dedupeSnippets(snippets) {
|