magento / magento/magento2-phpstorm-plugin
Navigate to configuration (di.xml ) does not work correctly
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 463
- Forks
- 98
- Avg merge
- 1h 6m
- Merged PRs (30d)
- 3
Description
**Describe the bug** (*)
List of di.xml configurations for a class displays all classes that are nested in the namespace of the desired class. This makes it difficult to find real places where the desired class is used.
**To Reproduce** (*)
Steps to reproduce the behavior:
1. Open the `\Magento\Customer\Model\Session` class
2. Click on the di.xml icon in the gutter

3. The list opens

4. Click on different lines
5. This opens the place where this class is used
6. But this list also includes classes that start with the desired class
7. Here we got to the class
`Magento\Customer\Model\Session\Storage`
although we were looking for a class
`Magento\Customer\Model\Session`

**Expected behavior** (*)
In the di.xml configuration list only configurations for the class you are looking for must be displayed.
**Please complete the following information:** (*)
- OS: MacOS 12.6
- PhpStorm version: 2022.2.3
- Plugin Version: 4.4.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in PhpStorm from the Magento\Customer\Model\Session class by opening the di.xml gutter list and selecting entries. Trace the navigation behind this list, then verify that the results contain only the exact class and exclude Magento\Customer\Model\Session\Storage and other nested classes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100