From 8b56e7ec34f0988d3517b4184d1903d4fd865099 Mon Sep 17 00:00:00 2001 From: Vikash Agrawal Date: Thu, 17 Oct 2024 13:31:23 -0700 Subject: [PATCH] feat(amazonq): create context menu for agents --- ...-045e06c9-093c-44df-aec2-a55239ce2cb5.json | 4 ++++ packages/amazonq/package.json | 23 +++++++++++++++---- packages/core/package.nls.json | 3 ++- 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 packages/amazonq/.changes/next-release/Feature-045e06c9-093c-44df-aec2-a55239ce2cb5.json diff --git a/packages/amazonq/.changes/next-release/Feature-045e06c9-093c-44df-aec2-a55239ce2cb5.json b/packages/amazonq/.changes/next-release/Feature-045e06c9-093c-44df-aec2-a55239ce2cb5.json new file mode 100644 index 00000000000..860f7aaa679 --- /dev/null +++ b/packages/amazonq/.changes/next-release/Feature-045e06c9-093c-44df-aec2-a55239ce2cb5.json @@ -0,0 +1,4 @@ +{ + "type": "Feature", + "description": "Create a new group for Q Developer Agents in the Context Menu" +} diff --git a/packages/amazonq/package.json b/packages/amazonq/package.json index eb4034aa1f2..981a37e8c99 100644 --- a/packages/amazonq/package.json +++ b/packages/amazonq/package.json @@ -355,13 +355,21 @@ "group": "cw_chat@4" }, { - "command": "aws.amazonq.generateUnitTests", - "group": "cw_chat@5", - "when": "aws.codewhisperer.connected && aws.isInternalUser" + "command": "aws.amazonq.sendToPrompt", + "group": "cw_chat@5" }, { - "command": "aws.amazonq.sendToPrompt", - "group": "cw_chat@6" + "command": "aws.amazonq.contextMenu.Agent.title", + "group": "cw_chat_agents@1" + }, + { + "command": "aws.amazonq.security.scan", + "group": "cw_chat_agents@1" + }, + { + "command": "aws.amazonq.generateUnitTests", + "group": "cw_chat_agents@2", + "when": "aws.codewhisperer.connected && aws.isInternalUser" } ], "editor/context": [ @@ -576,6 +584,11 @@ "title": "%AWS.amazonq.toggleCodeScan%", "category": "%AWS.amazonq.title%", "enablement": "aws.codewhisperer.connected" + }, + { + "command": "aws.amazonq.contextMenu.Agent.title", + "title": "%AWS.amazonq.contextMenu.Agent.title%", + "enablement": "false" } ], "keybindings": [ diff --git a/packages/core/package.nls.json b/packages/core/package.nls.json index 94dcd9c8832..babfefc98c9 100644 --- a/packages/core/package.nls.json +++ b/packages/core/package.nls.json @@ -317,5 +317,6 @@ "AWS.amazonq.featureDev.placeholder.additionalImprovements": "Choose an option to proceed", "AWS.amazonq.featureDev.placeholder.feedback": "Provide feedback or comments", "AWS.amazonq.featureDev.placeholder.describe": "Describe your task or issue in detail", - "AWS.amazonq.featureDev.placeholder.sessionClosed": "Open a new chat tab to continue" + "AWS.amazonq.featureDev.placeholder.sessionClosed": "Open a new chat tab to continue", + "AWS.amazonq.contextMenu.Agent.title": "Q Developer Agents" }