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

Function ShowInIDEPrompt

src/components/ShowInIDEPrompt.tsx:25–169  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

23 noInputMode: boolean;
24};
25export function ShowInIDEPrompt(t0) {
26 const $ = _c(36);
27 const {
28 onChange,
29 options,
30 input,
31 filePath,
32 ideName,
33 symlinkTarget,
34 rejectFeedback,
35 acceptFeedback,
36 setFocusedOption,
37 onInputModeToggle,
38 focusedOption,
39 yesInputMode,
40 noInputMode
41 } = t0;
42 let t1;
43 if ($[0] !== ideName) {
44 t1 = <Text bold={true} color="permission">Opened changes in {ideName} ⧉</Text>;
45 $[0] = ideName;
46 $[1] = t1;
47 } else {
48 t1 = $[1];
49 }
50 let t2;
51 if ($[2] !== symlinkTarget) {
52 t2 = symlinkTarget && <Text color="warning">{relative(getCwd(), symlinkTarget).startsWith("..") ? `This will modify ${symlinkTarget} (outside working directory) via a symlink` : `Symlink target: ${symlinkTarget}`}</Text>;
53 $[2] = symlinkTarget;
54 $[3] = t2;
55 } else {
56 t2 = $[3];
57 }
58 let t3;
59 if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
60 t3 = isSupportedVSCodeTerminal() && <Text dimColor={true}>Save file to continue…</Text>;
61 $[4] = t3;
62 } else {
63 t3 = $[4];
64 }
65 let t4;
66 if ($[5] !== filePath) {
67 t4 = basename(filePath);
68 $[5] = filePath;
69 $[6] = t4;
70 } else {
71 t4 = $[6];
72 }
73 let t5;
74 if ($[7] !== t4) {
75 t5 = <Text>Do you want to make this edit to{" "}<Text bold={true}>{t4}</Text>?</Text>;
76 $[7] = t4;
77 $[8] = t5;
78 } else {
79 t5 = $[8];
80 }
81 let t6;
82 if ($[9] !== acceptFeedback || $[10] !== input || $[11] !== onChange || $[12] !== options || $[13] !== rejectFeedback) {

Callers

nothing calls this directly

Calls 2

getCwdFunction · 0.85
onChangeFunction · 0.50

Tested by

no test coverage detected