@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/README.md +16 -19
- package/dist/{chunk-ZLCF3XQK.js → chunk-ABDBWCXU.js} +75 -1
- package/dist/chunk-ABDBWCXU.js.map +1 -0
- package/dist/{chunk-7DI5P62Q.js → chunk-I4R6GAAA.js} +2 -2
- package/dist/cypher/query-parser.js +2 -2
- package/dist/graph-store.d.ts +20 -0
- package/dist/graph-store.js +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +18 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/graph-store.ts +99 -0
- package/src/lsp/resolution.ts +52 -11
- package/src/lsp-reconciliation.test.ts +145 -0
- package/dist/chunk-ZLCF3XQK.js.map +0 -1
- /package/dist/{chunk-7DI5P62Q.js.map → chunk-I4R6GAAA.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
executeAst,
|
|
4
4
|
executeCypher,
|
|
5
5
|
parseCypher
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
3004
|
-
|
|
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 {
|