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

Method deprioritized

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

matchesFunction · 0.50

Tested by

no test coverage detected