MCPcopy
hub / github.com/codeaashu/claude-code / EditRejectionDiff

Function EditRejectionDiff

src/tools/FileEditTool/UI.tsx:160–212  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

158 fileContent: string | undefined;
159};
160function EditRejectionDiff(t0) {
161 const $ = _c(16);
162 const {
163 filePath,
164 oldString,
165 newString,
166 replaceAll,
167 style,
168 verbose
169 } = t0;
170 let t1;
171 if ($[0] !== filePath || $[1] !== newString || $[2] !== oldString || $[3] !== replaceAll) {
172 t1 = () => loadRejectionDiff(filePath, oldString, newString, replaceAll);
173 $[0] = filePath;
174 $[1] = newString;
175 $[2] = oldString;
176 $[3] = replaceAll;
177 $[4] = t1;
178 } else {
179 t1 = $[4];
180 }
181 const [dataPromise] = useState(t1);
182 let t2;
183 if ($[5] !== filePath || $[6] !== verbose) {
184 t2 = <FileEditToolUseRejectedMessage file_path={filePath} operation="update" firstLine={null} verbose={verbose} />;
185 $[5] = filePath;
186 $[6] = verbose;
187 $[7] = t2;
188 } else {
189 t2 = $[7];
190 }
191 let t3;
192 if ($[8] !== dataPromise || $[9] !== filePath || $[10] !== style || $[11] !== verbose) {
193 t3 = <EditRejectionBody promise={dataPromise} filePath={filePath} style={style} verbose={verbose} />;
194 $[8] = dataPromise;
195 $[9] = filePath;
196 $[10] = style;
197 $[11] = verbose;
198 $[12] = t3;
199 } else {
200 t3 = $[12];
201 }
202 let t4;
203 if ($[13] !== t2 || $[14] !== t3) {
204 t4 = <Suspense fallback={t2}>{t3}</Suspense>;
205 $[13] = t2;
206 $[14] = t3;
207 $[15] = t4;
208 } else {
209 t4 = $[15];
210 }
211 return t4;
212}
213function EditRejectionBody(t0) {
214 const $ = _c(7);
215 const {

Callers

nothing calls this directly

Calls 1

loadRejectionDiffFunction · 0.70

Tested by

no test coverage detected