Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to easily provide feedback #887

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added option to easily provide feedback
  • Loading branch information
Reinier Cruz authored and Reinier Cruz committed Aug 29, 2024
commit 670c369a5e6542ab72b4bca95f727bb7d6fad500
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
8 changes: 8 additions & 0 deletions src/commands/aksProvideFeedback/aksProvideFeedback.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import * as vscode from "vscode";
import { IActionContext } from "@microsoft/vscode-azext-utils";

export default async function aksProvideFeedback(_context: IActionContext): Promise<void> {
await vscode.commands.executeCommand("workbench.action.openIssueReporter", {
extensionId: "ms-kubernetes-tools.vscode-aks-tools",
});
}
2 changes: 2 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -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);

Loading