Skip to content

Commit 8843fc3

Browse files
committed
Adding /test, /dev and /doc wuick actions back as this is required for migration
1 parent 81e477a commit 8843fc3

File tree

1 file changed

+29
-0
lines changed
  • packages/core/src/amazonq/webview/ui/quickActions

1 file changed

+29
-0
lines changed

packages/core/src/amazonq/webview/ui/quickActions/generator.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,26 @@ export class QuickActionGenerator {
3434
const quickActionCommands = [
3535
{
3636
commands: [
37+
...(!this.disabledCommands.includes('/dev')
38+
? [
39+
{
40+
command: '/dev',
41+
icon: MynahIcons.CODE_BLOCK,
42+
placeholder: 'Describe your task or issue in as much detail as possible',
43+
description: 'Generate code to make a change in your project',
44+
},
45+
]
46+
: []),
47+
...(!this.disabledCommands.includes('/test')
48+
? [
49+
{
50+
command: '/test',
51+
icon: MynahIcons.CHECK_LIST,
52+
placeholder: 'Specify a function(s) in the current file (optional)',
53+
description: 'Generate unit tests for selected code',
54+
},
55+
]
56+
: []),
3757
...(this.isScanEnabled && !this.disabledCommands.includes('/review')
3858
? [
3959
{
@@ -43,6 +63,15 @@ export class QuickActionGenerator {
4363
},
4464
]
4565
: []),
66+
...(!this.disabledCommands.includes('/doc')
67+
? [
68+
{
69+
command: '/doc',
70+
icon: MynahIcons.FILE,
71+
description: 'Generate documentation',
72+
},
73+
]
74+
: []),
4675
...(this.isGumbyEnabled && !this.disabledCommands.includes('/transform')
4776
? [
4877
{

0 commit comments

Comments
 (0)