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

Function formatPathLink

src/utils/completionCache.ts:63–69  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

61}
62
63function formatPathLink(filePath: string): string {
64 if (!supportsHyperlinks()) {
65 return filePath
66 }
67 const fileUrl = pathToFileURL(filePath).href
68 return `\x1b]8;;${fileUrl}\x07${filePath}\x1b]8;;\x07`
69}
70
71/**
72 * Generate and cache the completion script, then add a source line to the

Callers 1

setupShellCompletionFunction · 0.70

Calls 1

supportsHyperlinksFunction · 0.85

Tested by

no test coverage detected