Global search for code intelligence
Problem to solve
GitLab recently introduced native code intelligence in &1576 (closed) https://docs.gitlab.com/ee/user/project/code_intelligence.html#code-intelligence which stores code intelligence files as artefacts and then uses them to allow navigation features like "go to definition" within a project.
But there is no way to "go to definition" across projects in your group.
Intended users
User experience goal
Proposal
If we index relevant parts of the code intelligence in Elasticsearch we could search globally for tokens and allow for features like "go to definition" to work across projects as well as add features to our search which do "search by definition".
We could simply queue an indexing job every time an LSIF artifact is uploaded and then index that in a special index for code intelligence. After that we could search that index using our advanced global search.
Further details
- Newer open source protocol for code intelligence: SCIP https://github.com/sourcegraph/scip