Skip to content

[Bug] View Model can be created in the vendor #1204

Open
@bohdan-harniuk

Description

@bohdan-harniuk

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions