scalameta / metals

Scala language server with rich IDE features 🚀
https://scalameta.org/metals/
Apache License 2.0
2.08k stars 328 forks source link

improvement: Detect custom mains #6745

Closed tgodzik closed 4 weeks ago

tgodzik commented 4 weeks ago

Previously, if any plugin generate a separate main entry we would not show it in the code lenses. Now, we show it at the start of the file, since without an occurrence we can't say where the code lens should end up.

This might be improved in the future if we add those symbols to synthetic section, but that is much more work.

Fixes https://github.com/scalameta/metals/issues/6738

soronpo commented 4 weeks ago

Thank you very much @tgodzik !