Skip to content

Commit d1f946c

Browse files
committed
ui(new patches): remove new event for sending a patchto the ide.
1 parent 5a25419 commit d1f946c

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

refact-agent/gui/src/events/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export {
7373
ideEscapeKeyPressed,
7474
ideIsChatStreaming,
7575
ideIsChatReady,
76-
ideToolEdit,
7776
} from "../hooks/useEventBusForIDE";
7877

7978
export const fim = {

refact-agent/gui/src/hooks/useEventBusForIDE.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,9 @@ export const ideEscapeKeyPressed = createAction<string>("ide/escapeKeyPressed");
3838
export const ideIsChatStreaming = createAction<boolean>("ide/isChatStreaming");
3939
export const ideIsChatReady = createAction<boolean>("ide/isChatReady");
4040

41-
export const ideToolEdit = createAction<{ path: string; edit: ToolEditResult }>(
42-
"ide/toolEdit",
43-
);
44-
4541
import { pathApi } from "../services/refact/path";
4642

4743
import { telemetryApi } from "../services/refact/telemetry";
48-
import { ToolEditResult } from "../services/refact";
4944

5045
export const useEventsBusForIDE = () => {
5146
const [sendTelemetryEvent] =
@@ -217,14 +212,6 @@ export const useEventsBusForIDE = () => {
217212
const openBringYourOwnKeyFile = () =>
218213
openFileFromPathQuery(getBringYourOwnKeyPath);
219214

220-
const sendToolEditToIde = useCallback(
221-
(path: string, edit: ToolEditResult) => {
222-
const action = ideToolEdit({ path, edit });
223-
postMessage(action);
224-
},
225-
[postMessage],
226-
);
227-
228215
return {
229216
diffPasteBack,
230217
openSettings,
@@ -244,6 +231,5 @@ export const useEventsBusForIDE = () => {
244231
escapeKeyPressed,
245232
setIsChatStreaming,
246233
setIsChatReady,
247-
sendToolEditToIde,
248234
};
249235
};

0 commit comments

Comments
 (0)