What is the Language Server Index Format (LSIF)?
gh-pagesLSIF is a standard format used by language servers or programming tools to dump their workspace knowledge into a file. This dump allows consumers to answer Language Server Protocol (LSP) requests for that workspace without needing to run the actual language server.
Key Characteristics:
- LSP-Aligned: Data is modeled closely to LSP to allow serving it through LSP without transformation.
- Result-Oriented: It stores the results of LSP requests (e.g., definitions, references, hovers) rather than defining symbol semantics or a symbol database.
- JSON-Based: The output format is based on JSON.
- Graph-Based: The data is structured as a graph where vertices represent documents, ranges, or results, and edges represent LSP methods or relationships like
containsornext.