MCPcopy Create free account
hub / github.com/pingdotgg/t3code / openDiffFilePrimaryAction

Function openDiffFilePrimaryAction

apps/web/src/diffFileActions.ts:13–25  ·  view source on GitHub ↗
({
  threadRef,
  filePath,
  activeCwd,
  openInEditor,
}: OpenDiffFilePrimaryActionInput)

Source from the content-addressed store, hash-verified

11}
12
13export function openDiffFilePrimaryAction({
14 threadRef,
15 filePath,
16 activeCwd,
17 openInEditor,
18}: OpenDiffFilePrimaryActionInput): void {
19 if (threadRef) {
20 useRightPanelStore.getState().openFile(threadRef, filePath);
21 return;
22 }
23
24 openInEditor(activeCwd ? resolvePathLinkTarget(filePath, activeCwd) : filePath);
25}

Callers 2

DiffPanelFunction · 0.90

Calls 1

resolvePathLinkTargetFunction · 0.90

Tested by

no test coverage detected