MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / formatPathTooltip

Function formatPathTooltip

webview-ui/src/utils/formatPathTooltip.ts:18–28  ·  view source on GitHub ↗
(path?: string, additionalContent?: string)

Source from the content-addressed store, hash-verified

16 * // Returns: "src/utils/helper.ts:42-45" + U+200E
17 */
18export function formatPathTooltip(path?: string, additionalContent?: string): string {
19 if (!path) return ""
20
21 const formattedPath = removeLeadingNonAlphanumeric(path) + "\u200E"
22
23 if (additionalContent) {
24 return formattedPath + " " + additionalContent
25 }
26
27 return formattedPath
28}

Callers 3

ChatRowContentFunction · 0.90
CodeAccordionFunction · 0.90

Calls 1

Tested by

no test coverage detected