@remnic/coding-graph 9.6.24 → 9.6.25

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/index.js CHANGED
@@ -3,14 +3,14 @@ import {
3
3
  executeAst,
4
4
  executeCypher,
5
5
  parseCypher
6
- } from "./chunk-7DI5P62Q.js";
6
+ } from "./chunk-I4R6GAAA.js";
7
7
  import {
8
8
  DEAD_CODE_EXCLUSION,
9
9
  DEFAULT_TRAVERSE_PATHS_MAX,
10
10
  GraphStore,
11
11
  MAX_TRAVERSE_PATHS_HOPS,
12
12
  nodeIdFor
13
- } from "./chunk-ZLCF3XQK.js";
13
+ } from "./chunk-ABDBWCXU.js";
14
14
  import {
15
15
  CODING_GRAPH_SCHEMA_VERSION,
16
16
  EDGE_PROVENANCE_VALUES,
@@ -2947,6 +2947,7 @@ async function executeLspResolution(requests, options) {
2947
2947
  for (const [filePath, batchReqs] of byFile) {
2948
2948
  const upgrades = [];
2949
2949
  let batchFailed = false;
2950
+ let batchExhaustive = true;
2950
2951
  const firstReq = batchReqs[0];
2951
2952
  client.didOpen({
2952
2953
  uri: filePathToUri(filePath, options.workspaceRoot),
@@ -2971,6 +2972,7 @@ async function executeLspResolution(requests, options) {
2971
2972
  batchFailed = true;
2972
2973
  break;
2973
2974
  }
2975
+ batchExhaustive = false;
2974
2976
  unresolved++;
2975
2977
  continue;
2976
2978
  }
@@ -3000,13 +3002,23 @@ async function executeLspResolution(requests, options) {
3000
3002
  unresolved += upgrades.length;
3001
3003
  break;
3002
3004
  }
3003
- if (upgrades.length > 0) {
3004
- try {
3005
+ try {
3006
+ if (upgrades.length > 0) {
3005
3007
  await applyUpgrades(upgrades);
3006
3008
  upgraded += upgrades.length;
3007
- } catch {
3008
- unresolved += upgrades.length;
3009
3009
  }
3010
+ if (batchExhaustive && options.reconcileLspEdges) {
3011
+ options.reconcileLspEdges(
3012
+ filePath,
3013
+ upgrades.map((u) => ({
3014
+ srcQualifiedName: u.srcQualifiedName,
3015
+ dstQualifiedName: u.dstQualifiedName,
3016
+ type: u.type
3017
+ }))
3018
+ );
3019
+ }
3020
+ } catch {
3021
+ unresolved += upgrades.length;
3010
3022
  }
3011
3023
  }
3012
3024
  return {