[go: up one dir, main page]

Global search for code intelligence

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

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

  1. Newer open source protocol for code intelligence: SCIP https://github.com/sourcegraph/scip

Permissions and Security

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Edited by 🤖 GitLab Bot 🤖