From 23409abd0c89845c421abc7d439a8912fac9c99b Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Wed, 31 May 2023 16:10:53 +0800 Subject: [PATCH] Update title and placeholder for API key input - Change title from "DEVCHAT_API_KEY" to "Input Access Key". - Add placeholder text "Set OPENAI_API_KEY (or DevChat Access Key)". --- package.json | 2 +- src/contributes/commands.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6945cb5..22b92d6 100644 --- a/package.json +++ b/package.json @@ -155,7 +155,7 @@ }, { "command": "DevChat.OPENAI_API_KEY", - "title": "DEVCHAT_API_KEY", + "title": "Input Access Key", "category": "DevChat" }, { diff --git a/src/contributes/commands.ts b/src/contributes/commands.ts index 2b2913d..48d6bc2 100644 --- a/src/contributes/commands.ts +++ b/src/contributes/commands.ts @@ -68,7 +68,8 @@ export function registerApiKeySettingCommand(context: vscode.ExtensionContext) { vscode.commands.registerCommand('DevChat.OPENAI_API_KEY', async () => { const passwordInput: string = await vscode.window.showInputBox({ password: true, - title: "OPENAI_API_KEY" + title: "Input Access Key", + placeHolder: "Set OPENAI_API_KEY (or DevChat Access Key)" }) ?? ''; ApiKeyManager.writeApiKeySecret(passwordInput);