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

Function createFileSuggestionItem

src/hooks/fileSuggestions.ts:603–612  ·  view source on GitHub ↗

* Creates a file suggestion item

(
  filePath: string,
  score?: number,
)

Source from the content-addressed store, hash-verified

601 * Creates a file suggestion item
602 */
603function createFileSuggestionItem(
604 filePath: string,
605 score?: number,
606): SuggestionItem {
607 return {
608 id: `file-${filePath}`,
609 displayText: filePath,
610 metadata: score !== undefined ? { score } : undefined,
611 }
612}
613
614/**
615 * Find matching files and folders for a given query using the TS file index

Callers 1

findMatchingFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected