Skip to content

Render external symbols snapshot outputs#390

Open
jupblb wants to merge 4 commits intomainfrom
michal/external-symbols
Open

Render external symbols snapshot outputs#390
jupblb wants to merge 4 commits intomainfrom
michal/external-symbols

Conversation

@jupblb
Copy link
Copy Markdown
Collaborator

@jupblb jupblb commented Apr 10, 2026

Produce external_symbols.txt from index.external_symbols:

scip/scip.proto

Lines 28 to 33 in 739faa9

// (optional) Symbols that are referenced from this index but are defined in
// an external package (a separate `Index` message). Leave this field empty
// if you assume the external package will get indexed separately. If the
// external package won't get indexed for some reason then you can use this
// field to provide hover documentation for those external symbols.
repeated SymbolInformation external_symbols = 3;

Example output (sourcegraph/scip-go#198):

github.com/example/dep 0.1.test `github.com/example/dep`/T#
  relationship 0.1.test `sg/pr198`/Foo# implementation

Add formatExternalSymbols to produce an external_symbols.txt entry
when index.ExternalSymbols is non-empty. Extract shared
writeRelationships helper used by both FormatSnapshot and
formatExternalSymbols.
@jupblb jupblb changed the title Render external symbols in FormatSnapshots Render external symbols snapshot outputs Apr 10, 2026
@jupblb jupblb requested a review from trly April 10, 2026 09:24
@jupblb jupblb requested a review from trly April 13, 2026 09:33
@jupblb jupblb requested a review from trly April 13, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants