LSIF is a file format that stores code intelligence information such as hover docstrings, definitions, and references.
Sourcegraph receives and stores LSIF files uploaded using upload-lsif.sh, then uses that information to provide fast and precise code intelligence when viewing files.
In this directory:
- upload-lsif.sh: a script that uploads an LSIF file to Sourcegraph (usually used in CI, similar to Codecov's Bash Uploader)
- server/: an HTTP server which runs behind Sourcegraph (for auth), receives and stores LSIF file uploads, and services requests for hovers/defs/refs
- extension/: a Sourcegraph extension which sends requests to the Sourcegraph instance at
.api/lsiffor hovers/defs/refs