MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getDeprioritizedPathSnapshot

Method getDeprioritizedPathSnapshot

src/db/queries.ts:706–709  ·  view source on GitHub ↗

* The `deprioritize` predicate with the project's patterns read once, for a * loop that asks about many paths. The plain predicate re-checks * `codegraph.json` on every call, which a long query's candidate loops made * hundreds of thousands of times (#2620).

()

Source from the content-addressed store, hash-verified

704 * hundreds of thousands of times (#2620).
705 */
706 getDeprioritizedPathSnapshot(): ((filePath: string) => boolean) | undefined {
707 const matcher = this.isDeprioritizedPath as DeprioritizedPathMatcher | undefined;
708 return matcher?.snapshot ? matcher.snapshot() : matcher;
709 }
710
711 // ===========================================================================
712 // Node Operations

Callers 2

searchNodesMethod · 0.95
deprioritizedPathsMethod · 0.80

Calls 1

snapshotMethod · 0.80

Tested by

no test coverage detected