mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-11 18:40:57 -07:00
undo (#18147)
This commit is contained in:
@@ -129,7 +129,7 @@ describe('terminalSetup', () => {
|
||||
|
||||
expect(result.success).toBe(true);
|
||||
const writtenContent = JSON.parse(mocks.writeFile.mock.calls[0][1]);
|
||||
expect(writtenContent).toHaveLength(2); // Shift+Enter and Ctrl+Enter
|
||||
expect(writtenContent).toHaveLength(6); // Shift+Enter, Ctrl+Enter, Cmd+Z, Alt+Z, Shift+Cmd+Z, Shift+Alt+Z
|
||||
});
|
||||
|
||||
it('should not modify if bindings already exist', async () => {
|
||||
@@ -145,6 +145,26 @@ describe('terminalSetup', () => {
|
||||
command: 'workbench.action.terminal.sendSequence',
|
||||
args: { text: VSCODE_SHIFT_ENTER_SEQUENCE },
|
||||
},
|
||||
{
|
||||
key: 'cmd+z',
|
||||
command: 'workbench.action.terminal.sendSequence',
|
||||
args: { text: '\u001b[122;9u' },
|
||||
},
|
||||
{
|
||||
key: 'alt+z',
|
||||
command: 'workbench.action.terminal.sendSequence',
|
||||
args: { text: '\u001b[122;3u' },
|
||||
},
|
||||
{
|
||||
key: 'shift+cmd+z',
|
||||
command: 'workbench.action.terminal.sendSequence',
|
||||
args: { text: '\u001b[122;10u' },
|
||||
},
|
||||
{
|
||||
key: 'shift+alt+z',
|
||||
command: 'workbench.action.terminal.sendSequence',
|
||||
args: { text: '\u001b[122;4u' },
|
||||
},
|
||||
];
|
||||
mocks.readFile.mockResolvedValue(JSON.stringify(existingBindings));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user