Closed gabro closed 2 years ago
We now have a way to search for a parent symbol, so this should be doable, however it needs semanticDB instead of just the compiler, so not sure if it exactly helps the issue here.
We are already using the presentation compiler for finding the symbol when fetching docstrings so I don't think it makes a big difference in this particular case.
This should already work after some recent changes and both in Scala 2 and 3.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like See https://github.com/scalameta/metals/issues/648#issuecomment-482161898
Describe alternatives you've considered Nothing so far.
Search terms: scaladoc, docstring, define, variables