Generate NOTICES.TXT and surface via command (#5310)

This commit is contained in:
Shreya Keshive
2025-08-03 16:19:34 -04:00
committed by GitHub
parent 0335ce5ecc
commit 4f69b2d8dc
7 changed files with 255 additions and 6 deletions

View File

@@ -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);
}),
);
}