mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Add "Gemini CLI: Run" command shortcut (#4792)
This commit is contained in:
@@ -23,6 +23,15 @@ export async function activate(context: vscode.ExtensionContext) {
|
||||
const message = err instanceof Error ? err.message : String(err);
|
||||
log(`Failed to start IDE server: ${message}`);
|
||||
}
|
||||
|
||||
context.subscriptions.push(
|
||||
vscode.commands.registerCommand('gemini-cli.runGeminiCLI', () => {
|
||||
const geminiCmd = 'gemini';
|
||||
const terminal = vscode.window.createTerminal(`Gemini CLI`);
|
||||
terminal.show();
|
||||
terminal.sendText(geminiCmd);
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
export async function deactivate(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user