MCPcopy Index your code
hub / github.com/codeaashu/claude-code / findMatchingFiles

Function findMatchingFiles

src/hooks/fileSuggestions.ts:618–626  ·  view source on GitHub ↗
(
  fileIndex: FileIndex,
  partialPath: string,
)

Source from the content-addressed store, hash-verified

616 */
617const MAX_SUGGESTIONS = 15
618function findMatchingFiles(
619 fileIndex: FileIndex,
620 partialPath: string,
621): SuggestionItem[] {
622 const results = fileIndex.search(partialPath, MAX_SUGGESTIONS)
623 return results.map(result =>
624 createFileSuggestionItem(result.path, result.score),
625 )
626}
627
628/**
629 * Starts a background refresh of the file index cache if not already in progress.

Callers 1

generateFileSuggestionsFunction · 0.85

Calls 2

createFileSuggestionItemFunction · 0.85
searchMethod · 0.65

Tested by

no test coverage detected