# 🚀 Sync Gemini CLI v0.2.1 - Major Feature Update (#483)

This commit is contained in:
tanzhenxin
2025-09-01 14:48:55 +08:00
committed by GitHub
parent 1610c1586e
commit 2572faf726
292 changed files with 19401 additions and 5941 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(
'Qwen Code Companion extension successfully installed. Please restart your terminal to enable full IDE integration.',
'Run Qwen Code',
'Qwen Code 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(
'qwen-code.runQwenCode',
);
const commandCallback = vi
.mocked(vscode.commands.registerCommand)
.mock.calls.find((call) => call[0] === 'qwen-code.runQwenCode')?.[1];
expect(commandCallback).toBeDefined();
});
});