refactor(core): extract ToolModificationHandler from scheduler (#16118)

This commit is contained in:
Abhi
2026-01-08 14:52:56 -05:00
committed by GitHub
parent fbfad06307
commit 16da6918cb
6 changed files with 427 additions and 88 deletions
+10 -3
View File
@@ -311,11 +311,18 @@ describe('editor utils', () => {
});
}
it('should return the correct command for emacs', () => {
const command = getDiffCommand('old.txt', 'new.txt', 'emacs');
it('should return the correct command for emacs with escaped paths', () => {
const command = getDiffCommand(
'old file "quote".txt',
'new file \\back\\slash.txt',
'emacs',
);
expect(command).toEqual({
command: 'emacs',
args: ['--eval', '(ediff "old.txt" "new.txt")'],
args: [
'--eval',
'(ediff "old file \\"quote\\".txt" "new file \\\\back\\\\slash.txt")',
],
});
});