Jump to code in mixins
See original GitHub issueIs your feature request related to a problem? Please describe.
When editing a mixin, it’s frustrating not to be able to jump to code which is referenced within the require-config.js like it’s possible within the layout xml files.
var config = {
config: {
mixins: {
'Magento_Checkout/js/view/shipping': {
'MyPlugin_Checkout/js/Magento_Checkout/view/shipping-mixin': true
},
Describe the solution you’d like (*)
When hitting F4 or CTRL + click on a line like 'MyPlugin_Checkout/js/Magento_Checkout/view/shipping-mixin'
it would be ideal that the plugin would try to locate the the Plugin folder for MyPlugin, then go to the relative folder for frontend or adminhtml when the web folder then open the relative js/Magento_Checkout/view/shipping-mixin.js
file.
If it can’t be found in app/code it will check the vendor folder for the given plugin.
The same should occur for the parent module mixin that is referenced 'Magento_Checkout/js/view/shipping'
so it becomes easy to jump from one to the other.
Describe alternatives you’ve considered
Javascript phpdoc automatic annotiation to make a @link to the given file when needed.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:7 (2 by maintainers)
Top GitHub Comments
@magento I am working on this
Nice! Thanks!