diff --git a/vscode-extension/package.json b/vscode-extension/package.json index d4841925d..414f82e85 100644 --- a/vscode-extension/package.json +++ b/vscode-extension/package.json @@ -57,6 +57,11 @@ "title": "Open Custom Model Registry File", "category": "AIConfig" }, + { + "command": "vscode-aiconfig.setupEnvironmentVariables", + "title": "Setup Environment Variables", + "category": "AIConfig" + }, { "command": "vscode-aiconfig.showWelcome", "title": "Welcome", @@ -122,10 +127,13 @@ { "id": "setupEnvironmentVariables", "title": "Setup Environment Variables", - "description": "This creates an .env file (or uses it if it already exists) to define environment varialbes needed to run AI models. Ex: OpenAI models read from the `OPENAI_API_KEY` variable", + "description": "This creates an .env file (or uses it if it already exists) to define environment varialbes needed to run AI models. Ex: OpenAI models read from the `OPENAI_API_KEY` variable\n[Setup Environment Variables](command:vscode-aiconfig.setupEnvironmentVariables)", "media": { "markdown": "media/welcomePage.md" - } + }, + "completionEvents": [ + "onCommand:vscode-aiconfig.setupEnvironmentVariables" + ] }, { "id": "createAIConfig", diff --git a/vscode-extension/src/extension.ts b/vscode-extension/src/extension.ts index fedc595f0..507da634f 100644 --- a/vscode-extension/src/extension.ts +++ b/vscode-extension/src/extension.ts @@ -55,6 +55,15 @@ export function activate(context: vscode.ExtensionContext) { }) ); + context.subscriptions.push( + vscode.commands.registerCommand( + COMMANDS.SETUP_ENVIRONMENT_VARIABLES, + () => { + vscode.window.showInformationMessage("Will implement next PR"); + } + ) + ); + const createAIConfigJSONCommand = vscode.commands.registerCommand( COMMANDS.CREATE_NEW_JSON, async () => { diff --git a/vscode-extension/src/util.ts b/vscode-extension/src/util.ts index 5f88d0578..c2fe03ef1 100644 --- a/vscode-extension/src/util.ts +++ b/vscode-extension/src/util.ts @@ -18,6 +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`, SHARE: `${EXTENSION_NAME}.share`, SHOW_WELCOME: `${EXTENSION_NAME}.showWelcome`, };