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)".
This commit is contained in:
bobo.yang 2023-05-31 16:10:53 +08:00
parent 3136748f72
commit 23409abd0c
2 changed files with 3 additions and 2 deletions

View File

@ -155,7 +155,7 @@
},
{
"command": "DevChat.OPENAI_API_KEY",
"title": "DEVCHAT_API_KEY",
"title": "Input Access Key",
"category": "DevChat"
},
{

View File

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