Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Navigation
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
    • Development
  • CLI & API

    • Sourcegraph CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
  1. Docs
  2. dev
  3. background-information
  4. codeintel

Developing code navigation

This guide documents our approach to developing code navigation-related features in our codebase. This includes the code navigation logic included in the Sourcegraph instance as well as the extensions that provide code navigation to the web UI, browser extension, and code host integrations.

Services:

  • precise-code-intel-worker

Code navigation-specific code:

  • lib/codeintel
  • dev/codeintel-qa
  • enterprise/internal/codeintel
  • cmd/worker/internal/codeintel
  • cmd/frontend/internal/codeintel
  • cmd/frontend/internal/executorqueue/queues/codeintel

Docs:

  • Deployment documentation
  • How indexes are processed
  • How precise code navigation queries are resolved
  • How code navigation extensions resolve hovers
  • How Sourcegraph auto-indexes source code

On this page

  1. Developing code navigation