Include jars without sources
Is your feature request related to a problem? Please describe.
This is in VSCode, but not sure if the scope is broader.
When I have a dependency that does not expose a -sources jar, the Metals Packages view, under the Libraries section, does not include this dependency, it's essentially hidden. Code linking is also broken, which makes it very hard to navigate code using such a library.
Describe the solution you'd like
There already exists multiple decompilation extensions for VSCode, so if Metals could simply not hide this jar, opening the no-source class files should result in such an extension kicking in and showing the decompiled (Java) code.
Describe alternatives you've considered
Can't think of any, other than not using Metals.
Additional context
For testing, here's an example of a custom Maven project without source files (v2.0.12.4 and backwards):
https://dl.frostwire.com/maven
Search terms
maven sources jar hidden invisible no-source
Not sure if this can be bundled into the same request or worth splitting out, but another side-effect of no sources JAR is that the indexing that drives completions is also absent.
It would be nice to have the indexing fall back to some alternate approach when we find something in dependencies that doesn't have a corresponding source entry. Seems reasonable for that indexing to be less thorough.