Skip to content

Commit 8b56e7e

Browse files
committed
feat(amazonq): create context menu for agents
1 parent c44fa30 commit 8b56e7e

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Create a new group for Q Developer Agents in the Context Menu"
4+
}

packages/amazonq/package.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,21 @@
355355
"group": "cw_chat@4"
356356
},
357357
{
358-
"command": "aws.amazonq.generateUnitTests",
359-
"group": "cw_chat@5",
360-
"when": "aws.codewhisperer.connected && aws.isInternalUser"
358+
"command": "aws.amazonq.sendToPrompt",
359+
"group": "cw_chat@5"
361360
},
362361
{
363-
"command": "aws.amazonq.sendToPrompt",
364-
"group": "cw_chat@6"
362+
"command": "aws.amazonq.contextMenu.Agent.title",
363+
"group": "cw_chat_agents@1"
364+
},
365+
{
366+
"command": "aws.amazonq.security.scan",
367+
"group": "cw_chat_agents@1"
368+
},
369+
{
370+
"command": "aws.amazonq.generateUnitTests",
371+
"group": "cw_chat_agents@2",
372+
"when": "aws.codewhisperer.connected && aws.isInternalUser"
365373
}
366374
],
367375
"editor/context": [
@@ -576,6 +584,11 @@
576584
"title": "%AWS.amazonq.toggleCodeScan%",
577585
"category": "%AWS.amazonq.title%",
578586
"enablement": "aws.codewhisperer.connected"
587+
},
588+
{
589+
"command": "aws.amazonq.contextMenu.Agent.title",
590+
"title": "%AWS.amazonq.contextMenu.Agent.title%",
591+
"enablement": "false"
579592
}
580593
],
581594
"keybindings": [

packages/core/package.nls.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,5 +317,6 @@
317317
"AWS.amazonq.featureDev.placeholder.additionalImprovements": "Choose an option to proceed",
318318
"AWS.amazonq.featureDev.placeholder.feedback": "Provide feedback or comments",
319319
"AWS.amazonq.featureDev.placeholder.describe": "Describe your task or issue in detail",
320-
"AWS.amazonq.featureDev.placeholder.sessionClosed": "Open a new chat tab to continue"
320+
"AWS.amazonq.featureDev.placeholder.sessionClosed": "Open a new chat tab to continue",
321+
"AWS.amazonq.contextMenu.Agent.title": "Q Developer Agents"
321322
}

0 commit comments

Comments
 (0)