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

Method setDeprioritizedPathMatcher

src/db/queries.ts:691–693  ·  view source on GitHub ↗

* Set the predicate that marks a path as de-prioritized by the project's * `codegraph.json` `deprioritize` patterns (#982). Ranking-only: those paths * stay indexed and findable, they just stop outranking first-party code. * Called once when the project opens; undefined disables the lever.

(matcher: ((filePath: string) => boolean) | undefined)

Source from the content-addressed store, hash-verified

689 * Called once when the project opens; undefined disables the lever.
690 */
691 setDeprioritizedPathMatcher(matcher: ((filePath: string) => boolean) | undefined): void {
692 this.isDeprioritizedPath = matcher;
693 }
694
695 /** The `deprioritize` predicate (#982), so other rankers apply the same lever. */
696 getDeprioritizedPathMatcher(): ((filePath: string) => boolean) | undefined {

Callers 1

wireLayersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected