Description
Describe the bug
When we create a function in one namespace and import it into another, we can navigate to its original definition. However, the function does not retain a reference to where it was imported, making it impossible to navigate back to the namespace that uses it.
To Reproduce
-
Create a Function in a New Namespace
- Define a function in a specific namespace (e.g.,
ns-a
).
- Define a function in a specific namespace (e.g.,
-
Import the Function into Another Namespace
- Import the function into a different namespace (e.g.,
ns-b
) usingrequire
or:refer
.
- Import the function into a different namespace (e.g.,
-
Navigate to the Function Definition
- Attempt to navigate to the original function definition from
ns-b
.
- Attempt to navigate to the original function definition from
-
Observe the Issue
- Notice that the navigation works only one way (to the original definition). It is not possible to navigate back to
ns-b
or see the references in the original namespace.
- Notice that the navigation works only one way (to the original definition). It is not possible to navigate back to
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Intellij version: 21.0.5+8-b631.16 aarch64 (JCEF 122.1.9)
- Plugin version: 2.6.4
Intellij log
Screen.Recording.2025-01-24.at.15.20.03.mov
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done