From a2ed4266aaee69932a8254ccf611c95ad584a71a Mon Sep 17 00:00:00 2001 From: cornmander Date: Tue, 24 Jun 2025 02:41:40 -0400 Subject: Update editor.ts (#1371) --- packages/core/src/utils/editor.test.ts | 1 + packages/core/src/utils/editor.ts | 1 + 2 files changed, 2 insertions(+) (limited to 'packages/core/src/utils') diff --git a/packages/core/src/utils/editor.test.ts b/packages/core/src/utils/editor.test.ts index 54e8072f..85b54333 100644 --- a/packages/core/src/utils/editor.test.ts +++ b/packages/core/src/utils/editor.test.ts @@ -189,6 +189,7 @@ describe('editor utils', () => { diffCommand.args, { stdio: 'inherit', + shell: true, }, ); expect(mockSpawn.on).toHaveBeenCalledWith( diff --git a/packages/core/src/utils/editor.ts b/packages/core/src/utils/editor.ts index e7a87ac1..36533e2c 100644 --- a/packages/core/src/utils/editor.ts +++ b/packages/core/src/utils/editor.ts @@ -145,6 +145,7 @@ export async function openDiff( return new Promise((resolve, reject) => { const childProcess = spawn(diffCommand.command, diffCommand.args, { stdio: 'inherit', + shell: true, }); childProcess.on('close', (code) => { -- cgit v1.2.3