diff options
| author | Pyush Sinha <[email protected]> | 2025-06-28 10:44:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-28 17:44:31 +0000 |
| commit | 3518ff766345ba98d90495b46c84439e6fc1a61c (patch) | |
| tree | 4617977516276a40942aea637420658325278b49 /packages/core/src/utils/editor.test.ts | |
| parent | 0d51e4b4b7fdc732d4388ee04f3270061d85f0b1 (diff) | |
feat: add VSCodium editor support (#2299)
Co-authored-by: Scott Densmore <[email protected]>
Co-authored-by: Allen Hutchison <[email protected]>
Diffstat (limited to 'packages/core/src/utils/editor.test.ts')
| -rw-r--r-- | packages/core/src/utils/editor.test.ts | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/packages/core/src/utils/editor.test.ts b/packages/core/src/utils/editor.test.ts index 85b54333..09bd496f 100644 --- a/packages/core/src/utils/editor.test.ts +++ b/packages/core/src/utils/editor.test.ts @@ -56,6 +56,7 @@ describe('editor utils', () => { win32Command: string; }> = [ { editor: 'vscode', command: 'code', win32Command: 'code.cmd' }, + { editor: 'vscodium', command: 'codium', win32Command: 'codium.cmd' }, { editor: 'windsurf', command: 'windsurf', win32Command: 'windsurf' }, { editor: 'cursor', command: 'cursor', win32Command: 'cursor' }, { editor: 'vim', command: 'vim', win32Command: 'vim' }, @@ -112,6 +113,7 @@ describe('editor utils', () => { win32Command: string; }> = [ { editor: 'vscode', command: 'code', win32Command: 'code.cmd' }, + { editor: 'vscodium', command: 'codium', win32Command: 'codium.cmd' }, { editor: 'windsurf', command: 'windsurf', win32Command: 'windsurf' }, { editor: 'cursor', command: 'cursor', win32Command: 'cursor' }, { editor: 'zed', command: 'zed', win32Command: 'zed' }, @@ -171,7 +173,13 @@ describe('editor utils', () => { }); describe('openDiff', () => { - const spawnEditors: EditorType[] = ['vscode', 'windsurf', 'cursor', 'zed']; + const spawnEditors: EditorType[] = [ + 'vscode', + 'vscodium', + 'windsurf', + 'cursor', + 'zed', + ]; for (const editor of spawnEditors) { it(`should call spawn for ${editor}`, async () => { const mockSpawn = { @@ -285,7 +293,13 @@ describe('editor utils', () => { expect(allowEditorTypeInSandbox('vim')).toBe(true); }); - const guiEditors: EditorType[] = ['vscode', 'windsurf', 'cursor', 'zed']; + const guiEditors: EditorType[] = [ + 'vscode', + 'vscodium', + 'windsurf', + 'cursor', + 'zed', + ]; for (const editor of guiEditors) { it(`should not allow ${editor} in sandbox mode`, () => { process.env.SANDBOX = 'sandbox'; |
