MCPcopy
hub / github.com/21st-dev/1code / handleOpenInFilePreview

Function handleOpenInFilePreview

src/renderer/features/changes/changes-view.tsx:888–894  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

886 };
887
888 const handleOpenInFilePreview = (filePath: string) => {
889 const absolutePath = `${worktreePath}/${filePath}`;
890 setFileViewerPath(absolutePath);
891 if (diffDisplayMode !== "side-peek") {
892 setDiffSidebarOpen(false);
893 }
894 };
895
896 return (
897 <>

Callers 1

ChangesViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected