doc/integration/sourcegraph.md
{{< details >}}
{{< /details >}}
[!note] On GitLab.com, this feature is available for public projects only.
Sourcegraph provides code intelligence features in the GitLab UI. When enabled, participating projects display a code intelligence popover in these code views:
When visiting one of these views, hover over a code reference to see a popover with:
<i class="fa-youtube-play" aria-hidden="true"></i> For an overview, watch the video Sourcegraph's new GitLab native integration.
<!-- Video published on 2019-11-12 -->For more information, see epic 2201.
{{< details >}}
{{< /details >}}
Prerequisites:
In Sourcegraph:
corsOrigin setting
in your Sourcegraph configuration.Next, configure your GitLab instance to connect to your Sourcegraph instance.
Prerequisites:
https://sourcegraph.example.com.Users on GitLab Self-Managed must also configure their user settings to use the Sourcegraph integration.
On GitLab.com, the integration is available for all public projects. Private projects are not supported.
Prerequisites:
To enable this feature in your GitLab user preferences:
If you enabled Sourcegraph for your project but it is not working, Sourcegraph might not
have indexed the project yet. You can check if Sourcegraph is available for your project
by visiting https://sourcegraph.com/gitlab.com/<project-path>, replacing <project-path>
with the path to your GitLab project.