scalameta / metals-feature-requests

Issue tracker for Metals feature requests
37 stars 4 forks source link

Fallback to the docstring of overridden symbols if the referenced symbol has no documentation #16

Closed gabro closed 2 years ago

gabro commented 5 years ago

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

tgodzik commented 5 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.

olafurpg commented 5 years ago

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.

tgodzik commented 2 years ago

This should already work after some recent changes and both in Scala 2 and 3.