MCPcopy Create free account
hub / github.com/codeaashu/claude-code / handleCopy

Function handleCopy

web/components/file-viewer/FileBreadcrumb.tsx:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 const isAbsolute = path.startsWith("/");
17
18 const handleCopy = async () => {
19 await navigator.clipboard.writeText(path);
20 setCopied(true);
21 setTimeout(() => setCopied(false), 1500);
22 };
23
24 const openInVSCode = () => {
25 window.open(`vscode://file${isAbsolute ? path : `/${path}`}`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected