diff --git a/package.json b/package.json index eebd27d2..0d2136ba 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,11 @@ "title": "%azure-api-center.commands.generate-api-client.title%", "category": "Azure API Center" }, + { + "command": "azure-api-center.generate-api-plugin", + "title": "%azure-api-center.commands.generate-api-plugin.title%", + "category": "Azure API Center" + }, { "command": "azure-api-center.importOpenApiByFile", "title": "%azure-api-center.commands.importOpenApiByFile.title%", @@ -176,6 +181,10 @@ "command": "azure-api-center.generate-api-client", "when": "view == apiCenterTreeView && viewItem == azureApiCenterApiVersionDefinitionTreeItem-openapi" }, + { + "command": "azure-api-center.generate-api-plugin", + "when": "view == apiCenterTreeView && viewItem == azureApiCenterApiVersionDefinitionTreeItem-openapi" + }, { "command": "azure-api-center.importOpenApiByFile", "when": "view == apiCenterTreeView && viewItem =~ /never/" @@ -251,6 +260,10 @@ "command": "azure-api-center.generate-api-client", "when": "never" }, + { + "command": "azure-api-center.generate-api-plugin", + "when": "never" + }, { "command": "azure-api-center.generateHttpFile", "when": "never" diff --git a/package.nls.json b/package.nls.json index 653cd19a..d350c6e3 100644 --- a/package.nls.json +++ b/package.nls.json @@ -4,6 +4,7 @@ "azure-api-center.commands.open-api-docs.title": "Open API Documentation", "azure-api-center.commands.open-postman.title": "Test in Postman", "azure-api-center.commands.generate-api-client.title": "Generate API Client", + "azure-api-center.commands.generate-api-plugin.title": "Create Microsoft Copilot plugin", "azure-api-center.commands.importOpenApiByFile.title": "Import OpenAPI from File", "azure-api-center.commands.importOpenApiByLink.title": "Import OpenAPI from Link", "azure-api-center.commands.exportApi.title": "Export API Specification Document", diff --git a/src/extension.ts b/src/extension.ts index f42d996f..3da0362c 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -94,6 +94,8 @@ export async function activate(context: vscode.ExtensionContext) { registerCommandWithTelemetry('azure-api-center.generate-api-client', generateApiLibrary); + registerCommandWithTelemetry('azure-api-center.generate-api-plugin', generateApiLibrary); + registerCommandWithTelemetry('azure-api-center.generateHttpFile', GenerateHttpFile.generateHttpFile); registerCommandWithTelemetry('azure-api-center.registerApi', registerApi);