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:
parent
3136748f72
commit
23409abd0c
@ -155,7 +155,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "DevChat.OPENAI_API_KEY",
|
"command": "DevChat.OPENAI_API_KEY",
|
||||||
"title": "DEVCHAT_API_KEY",
|
"title": "Input Access Key",
|
||||||
"category": "DevChat"
|
"category": "DevChat"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -68,7 +68,8 @@ export function registerApiKeySettingCommand(context: vscode.ExtensionContext) {
|
|||||||
vscode.commands.registerCommand('DevChat.OPENAI_API_KEY', async () => {
|
vscode.commands.registerCommand('DevChat.OPENAI_API_KEY', async () => {
|
||||||
const passwordInput: string = await vscode.window.showInputBox({
|
const passwordInput: string = await vscode.window.showInputBox({
|
||||||
password: true,
|
password: true,
|
||||||
title: "OPENAI_API_KEY"
|
title: "Input Access Key",
|
||||||
|
placeHolder: "Set OPENAI_API_KEY (or DevChat Access Key)"
|
||||||
}) ?? '';
|
}) ?? '';
|
||||||
|
|
||||||
ApiKeyManager.writeApiKeySecret(passwordInput);
|
ApiKeyManager.writeApiKeySecret(passwordInput);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user