Jump to definition when browsing a repository
Problem to solve
When browsing a repo on GitLab and I see a function, I don't know what it does if it is defined in another file. This means I need to go the file where it is defined, but I might not even know where it is defined, particularly if it is not part of the code I am familiar with. To work around this today I need to checkout the code and install the dev tools to get proper code nav in my local IDE.
Further details
If LSIF files are uploaded to GitLab, we can use this information when browsing a repository to show code nav information.
Sourcegraph | GitHub |
---|---|
![]() |
![]() |
Proposal
When browsing a repo, and an LSIF file has been uploaded for the current SHA:
- show function definitions on hover
- provide Jump to definition
Links / references
Edited by James Ramsay (ex-GitLab)