magento2-phpstorm-plugin icon indicating copy to clipboard operation
magento2-phpstorm-plugin copied to clipboard

[Bug] View Model can be created in the vendor

Open bohdan-harniuk opened this issue 2 years ago • 1 comments

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:

  1. Go to any 3rd party modules layout file in the vendor directory
  2. Open a context menu above the block declaration
  3. See the Inject a new View Model for this block action appeared
  4. Click on the action
  5. See that view model is generated in the vendor module

Expected behaviour (*)

Action should not appear for vendor modules.

Screenshots

Screenshot 2022-09-21 at 12 28 31 Screenshot 2022-09-21 at 12 28 55 Screenshot 2022-09-21 at 12 29 57 Screenshot 2022-09-21 at 12 29 15

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

bohdan-harniuk avatar Sep 21 '22 09:09 bohdan-harniuk

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


m2-assistant[bot] avatar Sep 21 '22 09:09 m2-assistant[bot]

@magento I am working on this

anzin avatar Oct 12 '22 08:10 anzin