Open Gedochao opened 2 years ago
It doesn't seem to me that there's any way we can fix this on Scala CLI side.
The way it works in IntelliJ atm seems to rely on intellij-scala logic for scripts rather than anything we deliver through BSP
.
If we want this to work properly in IntelliJ, we should probably dig deeper in intellij-scala
code and try contributing, somewhat similar to how we're approaching it in Metals.
Unassigning myself from this, but leaving it open for now if anyone wants to have another look.
When referring to a method from a
*.sc
script, ctrl-clicking on the method sends the user to the Scala CLI generated wrapper rather than the actual script file. We should investigate if we can override this behaviour somehow.