* 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)
| 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 { |