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

Method deprioritized

src/index.ts:280–287  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

278 return matcher.ignores(rel.split(path.sep).join('/'));
279 };
280 const deprioritized: DeprioritizedPathMatcher = (filePath: string): boolean => {
281 try {
282 return matches(currentMatcher(), filePath);
283 } catch {
284 // Ranking must never take the search down with it.
285 return false;
286 }
287 };
288 // One `stat` for a whole loop of candidates instead of one per candidate
289 // (#2620): a search reads the config once, then asks the frozen matcher.
290 deprioritized.snapshot = () => {

Callers

nothing calls this directly

Calls 1

matchesFunction · 0.50

Tested by

no test coverage detected