magento2-phpstorm-plugin
magento2-phpstorm-plugin copied to clipboard
[Bug] View Model can be created in the vendor
Describe the bug (*)
In the current implementation the Inject a new View Model for this block
action can generate a view model for modules in the vendor directory.
To Reproduce (*)
Steps to reproduce the behaviour:
- Go to any 3rd party modules layout file in the vendor directory
- Open a context menu above the block declaration
- See the
Inject a new View Model for this block
action appeared - Click on the action
- See that view model is generated in the vendor module
Expected behaviour (*)
Action should not appear for vendor modules.
Screenshots




Please complete the following information: (*)
- OS: any
- PhpStorm/Intellij version: any
- Plugin Version: 4.4.0 (any)
Additional context
Mainline branch: 4.4.1-develop
Hi @bohdan-harniuk. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.
@magento I am working on this