@zuvia-software-solutions/code-mapper 2.5.1 → 2.5.2
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.
|
@@ -835,9 +835,17 @@ async function batchResolveTsgo(tsgoService, extractedCalls, ctx, graph, repoPat
|
|
|
835
835
|
onProgress?.(totalFilesProcessed, tsgoTotalFiles, actualWorkers);
|
|
836
836
|
}
|
|
837
837
|
const absFilePath = path.resolve(repoPath, filePath);
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
838
|
+
// Pipeline: fire all definition requests for this file concurrently.
|
|
839
|
+
// The LSP server processes them serially, but we eliminate round-trip
|
|
840
|
+
// latency between requests — major speedup on large files.
|
|
841
|
+
const BATCH = 50;
|
|
842
|
+
for (let i = 0; i < calls.length; i += BATCH) {
|
|
843
|
+
const batch = calls.slice(i, i + BATCH);
|
|
844
|
+
const defs = await Promise.all(batch.map(call => service.resolveDefinition(absFilePath, call.callLine - 1, call.callColumn)
|
|
845
|
+
.catch(() => null)));
|
|
846
|
+
for (let j = 0; j < batch.length; j++) {
|
|
847
|
+
const call = batch[j];
|
|
848
|
+
const def = defs[j];
|
|
841
849
|
if (!def) {
|
|
842
850
|
sliceFailed++;
|
|
843
851
|
continue;
|
|
@@ -885,9 +893,6 @@ async function batchResolveTsgo(tsgoService, extractedCalls, ctx, graph, repoPat
|
|
|
885
893
|
sliceFailed++;
|
|
886
894
|
}
|
|
887
895
|
}
|
|
888
|
-
catch {
|
|
889
|
-
sliceFailed++;
|
|
890
|
-
}
|
|
891
896
|
}
|
|
892
897
|
service.notifyFileDeleted(absFilePath);
|
|
893
898
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuvia-software-solutions/code-mapper",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "Graph-powered code intelligence for AI agents. Index any codebase, query via MCP or CLI.",
|
|
5
5
|
"author": "Abhigyan Patwari",
|
|
6
6
|
"license": "PolyForm-Noncommercial-1.0.0",
|