|
24 | 24 | "type": "string", |
25 | 25 | "default": "bin/magento", |
26 | 26 | "description": "Path to Magento CLI tool. Relative to workspace root or absolute path." |
| 27 | + }, |
| 28 | + "magento-toolbox.phpFileHeaderComment": { |
| 29 | + "type": "string", |
| 30 | + "editPresentation": "multilineText", |
| 31 | + "default": "", |
| 32 | + "markdownDescription": "`%module%` will be replaced with the module name. \n\n **Do not add comment symbols like `/*` or `*/`, they will be added automatically.** \n\n Separate lines with the newline character `\\n`" |
| 33 | + }, |
| 34 | + "magento-toolbox.xmlFileHeaderComment": { |
| 35 | + "type": "string", |
| 36 | + "editPresentation": "multilineText", |
| 37 | + "default": "", |
| 38 | + "markdownDescription": "`%module%` will be replaced with the module name. \n\n **Do not add comment symbols like `<!--` or `-->`, they will be added automatically.**" |
27 | 39 | } |
28 | 40 | } |
29 | 41 | }, |
|
42 | 54 | "command": "magento-toolbox.generateModule", |
43 | 55 | "title": "Magento Toolbox: Generate Module" |
44 | 56 | }, |
| 57 | + { |
| 58 | + "command": "magento-toolbox.generateBlock", |
| 59 | + "title": "Magento Toolbox: Generate Block" |
| 60 | + }, |
45 | 61 | { |
46 | 62 | "command": "magento-toolbox.indexWorkspace", |
47 | 63 | "title": "Magento Toolbox: Index Workspace" |
|
61 | 77 | { |
62 | 78 | "command": "magento-toolbox.generateObserver", |
63 | 79 | "title": "Magento Toolbox: Generate Observer" |
| 80 | + }, |
| 81 | + { |
| 82 | + "command": "magento-toolbox.generateEventsXml", |
| 83 | + "title": "Magento Toolbox: Generate Events XML" |
| 84 | + }, |
| 85 | + { |
| 86 | + "command": "magento-toolbox.generateGraphqlSchemaFile", |
| 87 | + "title": "Magento Toolbox: Generate GraphQL Schema File" |
| 88 | + }, |
| 89 | + { |
| 90 | + "command": "magento-toolbox.generateRoutesXmlFile", |
| 91 | + "title": "Magento Toolbox: Generate Routes XML" |
| 92 | + }, |
| 93 | + { |
| 94 | + "command": "magento-toolbox.generateAclXmlFile", |
| 95 | + "title": "Magento Toolbox: Generate ACL XML" |
| 96 | + }, |
| 97 | + { |
| 98 | + "command": "magento-toolbox.generateDiXmlFile", |
| 99 | + "title": "Magento Toolbox: Generate DI XML" |
| 100 | + }, |
| 101 | + { |
| 102 | + "command": "magento-toolbox.generateWebapiXmlFile", |
| 103 | + "title": "Magento Toolbox: Generate Webapi XML" |
64 | 104 | } |
65 | 105 | ], |
66 | 106 | "menus": { |
|
97 | 137 | "command": "magento-toolbox.copyMagentoPath", |
98 | 138 | "title": "Magento Toolbox: Copy Magento Path", |
99 | 139 | "when": "resourceExtname in magento-toolbox.supportedMagentoPathExtensions && resourcePath =~ /view/" |
| 140 | + }, |
| 141 | + { |
| 142 | + "command": "magento-toolbox.generateObserver", |
| 143 | + "when": "resourcePath =~ /app\\/code\\/.+\\/.+/i", |
| 144 | + "arguments": [] |
| 145 | + }, |
| 146 | + { |
| 147 | + "command": "magento-toolbox.generateBlock", |
| 148 | + "when": "resourcePath =~ /app\\/code\\/.+\\/.+/i" |
| 149 | + }, |
| 150 | + { |
| 151 | + "command": "magento-toolbox.generateEventsXml", |
| 152 | + "when": "resourcePath =~ /app\\/code\\/.+\\/.+/i" |
| 153 | + }, |
| 154 | + { |
| 155 | + "command": "magento-toolbox.generateGraphqlSchemaFile", |
| 156 | + "when": "resourcePath =~ /app\\/code\\/.+\\/.+/i" |
| 157 | + }, |
| 158 | + { |
| 159 | + "command": "magento-toolbox.generateRoutesXmlFile", |
| 160 | + "when": "resourcePath =~ /app\\/code\\/.+\\/.+/i" |
| 161 | + }, |
| 162 | + { |
| 163 | + "command": "magento-toolbox.generateAclXmlFile", |
| 164 | + "when": "resourcePath =~ /app\\/code\\/.+\\/.+/i" |
| 165 | + }, |
| 166 | + { |
| 167 | + "command": "magento-toolbox.generateDiXmlFile", |
| 168 | + "when": "resourcePath =~ /app\\/code\\/.+\\/.+/i" |
| 169 | + }, |
| 170 | + { |
| 171 | + "command": "magento-toolbox.generateWebapiXmlFile", |
| 172 | + "when": "resourcePath =~ /app\\/code\\/.+\\/.+/i" |
100 | 173 | } |
101 | 174 | ] |
102 | 175 | } |
|
157 | 230 | "php-parser": "^3.2.2", |
158 | 231 | "react": "^19.0.0", |
159 | 232 | "react-dom": "^19.0.0", |
| 233 | + "slugify": "^1.6.6", |
160 | 234 | "typescript-json-serializer": "^6.0.1", |
161 | 235 | "typescript-memoize": "^1.1.1", |
162 | 236 | "validatorjs": "^3.22.1" |
|
0 commit comments