diff --git a/package.json b/package.json index d20f730dc..793ec4a7b 100644 --- a/package.json +++ b/package.json @@ -200,6 +200,10 @@ "command": "aks.installAzureServiceOperator", "title": "Install Azure Service Operator" }, + { + "command": "aks.provideFeedback", + "title": "Report a Bug/Request a Feature" + }, { "command": "aks.aksCRUDDiagnostics", "title": "Create, Upgrade, Delete and Scale" @@ -360,7 +364,13 @@ }, { "command": "aks.installAzureServiceOperator", - "when": "view == kubernetes.cloudExplorer && viewItem =~ /aks\\.cluster/i || view == extension.vsKubernetesExplorer && viewItem =~ /vsKubernetes\\.\\w*cluster$/i" + "when": "view == kubernetes.cloudExplorer && viewItem =~ /aks\\.cluster/i || view == extension.vsKubernetesExplorer && viewItem =~ /vsKubernetes\\.\\w*cluster$/i", + "group": "99@1" + }, + { + "command": "aks.provideFeedback", + "when": "view == kubernetes.cloudExplorer && viewItem =~ /aks\\.cluster/i || view == extension.vsKubernetesExplorer && viewItem =~ /vsKubernetes\\.\\w*cluster$/i", + "group": "999@1" }, { "submenu": "aks.automatedDeploymentsSubMenu", diff --git a/src/commands/aksProvideFeedback/aksProvideFeedback.ts b/src/commands/aksProvideFeedback/aksProvideFeedback.ts new file mode 100644 index 000000000..02eea32e6 --- /dev/null +++ b/src/commands/aksProvideFeedback/aksProvideFeedback.ts @@ -0,0 +1,7 @@ +import * as vscode from "vscode"; + +export default async function aksProvideFeedback(): Promise { + await vscode.commands.executeCommand("workbench.action.openIssueReporter", { + extensionId: "ms-kubernetes-tools.vscode-aks-tools", + }); +} diff --git a/src/extension.ts b/src/extension.ts index cc15a1021..0ccc50adf 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -44,6 +44,7 @@ import { aksRetinaCapture } from "./commands/aksRetinaCapture/aksRetinaCapture"; import { signInToAzure, selectSubscriptions, selectTenant } from "./commands/aksAccount/aksAccount"; import { activateAzureSessionProvider, getSessionProvider } from "./auth/azureSessionProvider"; import { getReadySessionProvider } from "./auth/azureAuth"; +import aksProvideFeedback from "./commands/aksProvideFeedback/aksProvideFeedback"; export async function activate(context: vscode.ExtensionContext) { const cloudExplorer = await k8s.extension.cloudExplorer.v1; @@ -101,6 +102,7 @@ export async function activate(context: vscode.ExtensionContext) { registerCommandWithTelemetry("aks.refreshSubscription", refreshSubscription); registerCommandWithTelemetry("aks.eraserTool", aksEraserTool); registerCommandWithTelemetry("aks.aksRetinaCapture", aksRetinaCapture); + registerCommandWithTelemetry("aks.provideFeedback", aksProvideFeedback); await registerAzureServiceNodes(context);