-
Notifications
You must be signed in to change notification settings - Fork 1.3k
codeintel/design: Go to definition of unindexed/uncloned code #13137
Comments
Cross-posting the proposal from #9952 for the case where the target repo is cloned but has no LSIF index itself (specifically for TypeScript, but may be applicable or even easier for other languages):
|
I am excited about this feature! We have a large monorepo with many external dependencies that we currently can't navigate to via Sourcegraph. I agree that cross-repository navigation would be the ideal UX but I estimate it would require a large effort from our side to keep an updated list of the repositories for our external dependencies and associate their git commits with their published library versions. For example, conventions around git tagging vary between library to library. The way IDEs support code navigatio in the JVM world (Java, Scala, Kotlin, Clojure, ...) is that they index Just thinking out loud, would it be possible to somehow upload
Alternatively, I wonder if we could register our Artifactory instance (essentially a static file server) as a "repository" since it contains |
Dear all, This is your release captain speaking. 🚂🚂🚂 Branch cut for the 3.20 release is scheduled for tomorrow. Is this issue / PR going to make it in time? Please change the milestone accordingly. Thank you |
I'm currently drafting an RFC for this feature at https://docs.google.com/document/d/1QigoTPGbc5ztGRzeqBBFVM5sD_uLfT4yOO3qxch2kGE. Feel free to leave comments if you have input while we discuss some possible implementation avenues. |
I'm going to close this issue as we will track discussion and later implementation progress in the RFC. |
Code navigation currently fails if both the source and target of a go to definition operation are not cloned in the Sourcegraph instance.
In situations where RepoA depends on RepoB:
We should be able to match the behavior of VSCode by implementing a TextDocumentContentProvider in these circumstances, which will be able to render the text of a non-local dependency. This may require that we index the text documents of dependencies while indexing RepoA. Alternatively, we could federate code intelligence requests to a public Sourcegraph instance (https://sourcegraph.com) which is likely to contain these third-party dependencies.
This ticket is tracking an RFC effort to propose a solution to this problem.
The text was updated successfully, but these errors were encountered: