mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
This PR restructures the packages to move all symbols-only code into the symbols service. This helps to reason better about which service is accessing what datastores. Test plan: Just moved code, compiler and CI are happy. |
||
|---|---|---|
| .. | ||
| internal | ||
| rockskipintegration | ||
| shared | ||
| BUILD.bazel | ||
| cargo-config.sh | ||
| CODENOTIFY | ||
| ctags-install-alpine.sh | ||
| image_test.yaml | ||
| main.go | ||
| README.md | ||
symbols
Indexes symbols in repositories using Ctags. Similar in architecture to searcher, except over ctags output.
The ctags output is stored in SQLite files on disk (one per repository@commit). Ctags processing is lazy, so it will occur only when you first query the symbols service. Subsequent queries will use the cached on-disk SQLite DB.
It is used by basic-code-intel to provide the jump-to-definition feature.
It supports regex queries, with prefix queries (^foo) and exact match queries (^foo$) optimized to perform index lookups. The symbols sidebar and search-based code intel benefit from these optimizations.