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

Method setDeprioritizedPathMatcher

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

356 * Called once when the project opens; undefined disables the lever.
357 */
358 setDeprioritizedPathMatcher(matcher: ((filePath: string) => boolean) | undefined): void {
359 this.isDeprioritizedPath = matcher;
360 }
361
362 /** The `deprioritize` predicate (#982), so other rankers apply the same lever. */
363 getDeprioritizedPathMatcher(): ((filePath: string) => boolean) | undefined {

Callers 1

wireLayersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected