Elffuss BraidHub

kikocis/continue public

prettier fixes
Changeset697275a3e3a722f0bbe3c3b9139e30ea95d6f440ed1c190d588fbeb403f07a09
Authorchezsmithy <chezsmithy@me.com> · 2025-07-12 16:44 -07:00
Committerchezsmithy <chezsmithy@me.com> · 2025-07-12 17:05 -07:00
Parents562ef8278dce

Browse the files at this changeset

4 files changed

modified core/tools/definitions/searchAndReplaceInFile.ts +1 −1
@@ -88,4 +88,4 @@
8888 },
8989 },
9090 },
91-};
No newline at the end of the file
91+};
modified gui/src/pages/gui/ToolCallDiv/FunctionSpecificToolCallDiv.tsx +1 −1
@@ -55,4 +55,4 @@
5555 }
5656 }
5757
58-export default FunctionSpecificToolCallDiv;
No newline at the end of the file
58+export default FunctionSpecificToolCallDiv;
modified gui/src/util/clientTools/searchReplaceImpl.test.ts +13 −4
@@ -87,7 +87,10 @@
8787
8888 await expect(
8989 searchReplaceToolImpl(
90- { filepath: "test.txt", diffs: ["valid diff", "invalid diff content"] },
90+ {
91+ filepath: "test.txt",
92+ diffs: ["valid diff", "invalid diff content"],
93+ },
9194 "tool-call-id",
9295 mockExtras,
9396 ),
@@ -392,8 +395,14 @@
392395
393396 // Verify parseAllSearchReplaceBlocks was called for each diff
394397 expect(mockParseAllSearchReplaceBlocks).toHaveBeenCalledTimes(2);
395- expect(mockParseAllSearchReplaceBlocks).toHaveBeenNthCalledWith(1, "first diff");
396- expect(mockParseAllSearchReplaceBlocks).toHaveBeenNthCalledWith(2, "second diff");
398+ expect(mockParseAllSearchReplaceBlocks).toHaveBeenNthCalledWith(
399+ 1,
400+ "first diff",
401+ );
402+ expect(mockParseAllSearchReplaceBlocks).toHaveBeenNthCalledWith(
403+ 2,
404+ "second diff",
405+ );
397406
398407 // Verify final applyToFile call
399408 expect(mockIdeMessenger.request).toHaveBeenCalledWith("applyToFile", {
@@ -719,4 +728,4 @@
719728 });
720729 });
721730 });
722-});
No newline at the end of the file
731+});
modified gui/src/util/clientTools/searchReplaceImpl.ts +4 −2
@@ -31,7 +31,9 @@
3131 for (let diffIndex = 0; diffIndex < diffs.length; diffIndex++) {
3232 const blocks = parseAllSearchReplaceBlocks(diffs[diffIndex]);
3333 if (blocks.length === 0) {
34- throw new Error(`No complete search/replace blocks found in diff ${diffIndex + 1}`);
34+ throw new Error(
35+ `No complete search/replace blocks found in diff ${diffIndex + 1}`,
36+ );
3537 }
3638 allBlocks.push(...blocks);
3739 }
@@ -98,4 +100,4 @@
98100 `Failed to apply search and replace: ${error instanceof Error ? error.message : String(error)}`,
99101 );
100102 }
101-};
No newline at the end of the file
103+};