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 {
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 {
You can’t perform that action at this time.
0 commit comments