File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
packages/core/src/amazonq/webview/ui/quickActions Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,26 @@ export class QuickActionGenerator {
34
34
const quickActionCommands = [
35
35
{
36
36
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
+ : [ ] ) ,
37
57
...( this . isScanEnabled && ! this . disabledCommands . includes ( '/review' )
38
58
? [
39
59
{
@@ -43,6 +63,15 @@ export class QuickActionGenerator {
43
63
} ,
44
64
]
45
65
: [ ] ) ,
66
+ ...( ! this . disabledCommands . includes ( '/doc' )
67
+ ? [
68
+ {
69
+ command : '/doc' ,
70
+ icon : MynahIcons . FILE ,
71
+ description : 'Generate documentation' ,
72
+ } ,
73
+ ]
74
+ : [ ] ) ,
46
75
...( this . isGumbyEnabled && ! this . disabledCommands . includes ( '/transform' )
47
76
? [
48
77
{
You can’t perform that action at this time.
0 commit comments