Skip to main content

Setting up the LSP server

Glean comes with a generic LSP server that can be used for browsing large codebases in VS Code, or any IDE that supports the LSP protocol. This LSP server is intended to be used in a read-only way: it doesn't currently support updating the data if the source code is edited, but it can be useful for navigating a large codebase using familiar IDE features.

The steps to set it up are:

  1. Build and install Glean and glean-lsp
  2. Index your source code into a local DB
  3. Follow the instructions in glean-lsp's README.md to set up the LSP server with VS Code, or your IDE.