sourcegraph/cmd/symbols
Erik Seliger 41fdc5cc7c
symbols: Make symbols specific code internal (#63736)
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.
2024-07-10 01:26:22 +02:00
..
internal symbols: Make symbols specific code internal (#63736) 2024-07-10 01:26:22 +02:00
rockskipintegration symbols: Make symbols specific code internal (#63736) 2024-07-10 01:26:22 +02:00
shared symbols: Make symbols specific code internal (#63736) 2024-07-10 01:26:22 +02:00
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
cargo-config.sh syntax-highlighter: initial ctags work (w/ musl scip-ctags) (#52643) 2023-05-30 17:19:39 -04:00
CODENOTIFY all: add keegancsmith to CODENOTIFY for many pkgs (#14241) 2020-09-29 11:03:53 +02:00
ctags-install-alpine.sh symbols: minor update last bumped comment (#58455) 2023-11-21 14:39:52 +02:00
image_test.yaml ctags: ensure that binary has correct featureset (#60084) 2024-02-05 09:39:06 +00:00
main.go remove more remannts of OSS build (#58253) 2023-11-10 07:59:03 +00:00
README.md Update symbols docs (#31600) 2022-02-26 01:28:28 +00:00

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.