diff options
| author | Shreya Keshive <[email protected]> | 2025-08-03 16:19:34 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-03 20:19:34 +0000 |
| commit | 2cdaf912ba43a79e68baa74db6086b7f41bc3b82 (patch) | |
| tree | 993d8014d47b7cb5cc0ccb06d968554cc0d1536c /packages/vscode-ide-companion/src | |
| parent | 072d8ba2899f2601dad6d4b0333fdcb80555a7dd (diff) | |
Generate NOTICES.TXT and surface via command (#5310)
Diffstat (limited to 'packages/vscode-ide-companion/src')
| -rw-r--r-- | packages/vscode-ide-companion/src/extension.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/vscode-ide-companion/src/extension.ts b/packages/vscode-ide-companion/src/extension.ts index 637b69e3..73090175 100644 --- a/packages/vscode-ide-companion/src/extension.ts +++ b/packages/vscode-ide-companion/src/extension.ts @@ -5,8 +5,8 @@ */ import * as vscode from 'vscode'; -import { IDEServer } from './ide-server'; -import { createLogger } from './utils/logger'; +import { IDEServer } from './ide-server.js'; +import { createLogger } from './utils/logger.js'; const IDE_WORKSPACE_PATH_ENV_VAR = 'GEMINI_CLI_IDE_WORKSPACE_PATH'; @@ -55,6 +55,13 @@ export async function activate(context: vscode.ExtensionContext) { terminal.show(); terminal.sendText(geminiCmd); }), + vscode.commands.registerCommand('gemini-cli.showNotices', async () => { + const noticePath = vscode.Uri.joinPath( + context.extensionUri, + 'NOTICES.txt', + ); + await vscode.window.showTextDocument(noticePath); + }), ); } |
