scala / scala3

The Scala 3 compiler, also known as Dotty.
https://dotty.epfl.ch
Apache License 2.0
5.81k stars 1.05k forks source link

Extend Metals with resolving/inserting doc links #11283

Closed abgruszecki closed 1 year ago

romanowski commented 4 years ago

cc @tgodzik

tgodzik commented 4 years ago

Could you explain what we want to do here? What is the functionality exactly?

abgruszecki commented 4 years ago

It's about Scaladoc links: https://github.com/VirtusLab/dotty-dokka/blob/master/src/main/scala/tests/tests.scala#L77-L89

It should be possible to follow them from the IDE, and to use the IDE to reliably generate a link to some source definition.

I'm not sure if Metals uses compiler APIs directly (Symbols etc.) - if it does, it shouldn't be too complicated to copy the functionality over.

In any case, before we do this, we need to finalise the link syntax in the doctool

ckipp01 commented 1 year ago

@tgodzik is this still something we want open here, or does having the feature request in Metals good enough? If so I can link to this from there and then just close this.

tgodzik commented 1 year ago

I think it's enough to have it open in Metals.

ckipp01 commented 1 year ago

Alright, that was my thinking as well. I'll go ahead and close this in favor of https://github.com/scalameta/metals/issues/5736.