magento / magento/magento2-phpstorm-plugin

Create duplicated XML declarations navigation

Open
#191 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Complex line marker Priority: P2 Severity: S2
Dominant language
Java
Stars
463
Forks
98
Avg merge
1h 6m
Merged PRs (30d)
3

Description

As a developer, I want to know where are other declarations of the same XML path nodes located and access them quickly.
Area of usage is almost all XML declarations:

- di
- events
- crontab
- system
- config
- db_schema
- acl
- menu
- routes
- extension_attributes
- email_templates
- webapi
- mview
- indexer
- fieldset
- cron_group
- webrestriction
- sections

Would be nice to have something the same as we have in plugins functionality (just some icon with a dropdown list when you click on it):
![image](https://user-images.githubusercontent.com/15912461/79964989-c47bf500-848b-11ea-92e9-e5ee9e7f6ffd.png)
List of files that contains the same declaration. If you click on it - you go directly to the selected declaration.

Example:
You have a **Vendor1_Module/etc/adminhtml/system.xml** with declaration **_section1/group2/field1_**
and **Vendor2_Module/etc/adminhtml/system.xml** with the same declaration _**section1/group2/field1**_
At both files, you have a "related nodes" icon on the left side of this node. When you click on this icon you see the list of files that also contain this declaration. Clicking to any of them you'll be switched to this file and place in file where this node is declared.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing plugins functionality referenced in the issue and how the PHPStorm plugin handles XML declarations. Define the supported declaration areas and navigation behavior, then verify that selecting a related node opens the correct file and declaration location.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.