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

Method setDeprioritizedPathMatcher

src/db/queries.ts:741–743  ·  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

739 * Called once when the project opens; undefined disables the lever.
740 */
741 setDeprioritizedPathMatcher(matcher: ((filePath: string) => boolean) | undefined): void {
742 this.isDeprioritizedPath = matcher;
743 }
744
745 /** The `deprioritize` predicate (#982), so other rankers apply the same lever. */
746 getDeprioritizedPathMatcher(): ((filePath: string) => boolean) | undefined {

Callers 1

wireLayersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected