IDE integration Gemini command multi-folder support + bump version (#6265)

Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
Shreya Keshive
2025-08-15 00:07:06 +00:00
committed by GitHub
parent cf7e6ff52d
commit db347eeee8
6 changed files with 42 additions and 31 deletions

View File

@@ -25,6 +25,7 @@ vi.mock('vscode', () => ({
close: vi.fn(),
},
showTextDocument: vi.fn(),
showWorkspaceFolderPick: vi.fn(),
},
workspace: {
workspaceFolders: [],
@@ -80,8 +81,7 @@ describe('activate', () => {
vi.mocked(context.globalState.get).mockReturnValue(undefined);
await activate(context);
expect(showInformationMessageMock).toHaveBeenCalledWith(
'Gemini CLI Companion extension successfully installed. Please restart your terminal to enable full IDE integration.',
'Re-launch Gemini CLI',
'Gemini CLI Companion extension successfully installed.',
);
});
@@ -99,8 +99,10 @@ describe('activate', () => {
await activate(context);
expect(showInformationMessageMock).toHaveBeenCalled();
await new Promise(process.nextTick); // Wait for the promise to resolve
expect(vscode.commands.executeCommand).toHaveBeenCalledWith(
'gemini-cli.runGeminiCLI',
);
const commandCallback = vi
.mocked(vscode.commands.registerCommand)
.mock.calls.find((call) => call[0] === 'gemini-cli.runGeminiCLI')?.[1];
expect(commandCallback).toBeDefined();
});
});