diff --git a/vscode-extension/package.json b/vscode-extension/package.json index d9f09ea12..db9d22776 100644 --- a/vscode-extension/package.json +++ b/vscode-extension/package.json @@ -58,7 +58,7 @@ "category": "AIConfig" }, { - "command": "vscode-aiconfig.setupEnvironmentVariables", + "command": "vscode-aiconfig.setApiKeys", "title": "Set API Keys", "category": "AIConfig" } @@ -119,7 +119,7 @@ { "id": "setEnvironment", "title": "Set API Keys", - "description": "Set up a .env file with the API keys needed to access the models you want to use.\n[Set API Keys](command:vscode-aiconfig.setupEnvironmentVariables)", + "description": "Set up a .env file with the API keys needed to access the models you want to use.\n[Set API Keys](command:vscode-aiconfig.setApiKeys)", "media": { "markdown": "media/apiKeys.md" } diff --git a/vscode-extension/src/extension.ts b/vscode-extension/src/extension.ts index 6649d3342..ae64c9eb8 100644 --- a/vscode-extension/src/extension.ts +++ b/vscode-extension/src/extension.ts @@ -68,12 +68,9 @@ export async function activate(context: vscode.ExtensionContext) { ); context.subscriptions.push( - vscode.commands.registerCommand( - COMMANDS.SETUP_ENVIRONMENT_VARIABLES, - async () => { - await setupEnvironmentVariables(context); - } - ) + vscode.commands.registerCommand(COMMANDS.SET_API_KEYS, async () => { + await setupEnvironmentVariables(context); + }) ); const createAIConfigJSONCommand = vscode.commands.registerCommand( diff --git a/vscode-extension/src/util.ts b/vscode-extension/src/util.ts index 6070086f5..91e151613 100644 --- a/vscode-extension/src/util.ts +++ b/vscode-extension/src/util.ts @@ -18,7 +18,7 @@ export const COMMANDS = { CREATE_CUSTOM_MODEL_REGISTRY: `${EXTENSION_NAME}.createCustomModelRegistry`, OPEN_CONFIG_FILE: `${EXTENSION_NAME}.openConfigFile`, OPEN_MODEL_REGISTRY: `${EXTENSION_NAME}.openModelRegistry`, - SETUP_ENVIRONMENT_VARIABLES: `${EXTENSION_NAME}.setupEnvironmentVariables`, + SET_API_KEYS: `${EXTENSION_NAME}.setApiKeys`, SHARE: `${EXTENSION_NAME}.share`, SHOW_WELCOME: `${EXTENSION_NAME}.showWelcome`, };