summaryrefslogtreecommitdiff
path: root/packages/core/src/tools/modifiable-tool.ts
diff options
context:
space:
mode:
authorGal Zahavi <[email protected]>2025-08-05 14:55:54 -0700
committerGitHub <[email protected]>2025-08-05 21:55:54 +0000
commitaacae1de43a202e35ea88ed3ae5829586711f06f (patch)
tree621c7452f9995818720f224f0a9e9b76579782b7 /packages/core/src/tools/modifiable-tool.ts
parent8d993156e74b3b57edfd120547beb7ba052b0053 (diff)
fix(core): prevent UI shift after vim edit (#5315)
Diffstat (limited to 'packages/core/src/tools/modifiable-tool.ts')
-rw-r--r--packages/core/src/tools/modifiable-tool.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/core/src/tools/modifiable-tool.ts b/packages/core/src/tools/modifiable-tool.ts
index 4f96a49c..42de3eb6 100644
--- a/packages/core/src/tools/modifiable-tool.ts
+++ b/packages/core/src/tools/modifiable-tool.ts
@@ -138,6 +138,7 @@ export async function modifyWithEditor<ToolParams>(
modifyContext: ModifyContext<ToolParams>,
editorType: EditorType,
_abortSignal: AbortSignal,
+ onEditorClose: () => void,
): Promise<ModifyResult<ToolParams>> {
const currentContent = await modifyContext.getCurrentContent(originalParams);
const proposedContent =
@@ -150,7 +151,7 @@ export async function modifyWithEditor<ToolParams>(
);
try {
- await openDiff(oldPath, newPath, editorType);
+ await openDiff(oldPath, newPath, editorType, onEditorClose);
const result = getUpdatedParams(
oldPath,
newPath,