Skip to content

Introduce dedicated SignatureDocumentation message type#385

Open
jupblb wants to merge 2 commits intomainfrom
michal/signature-doc
Open

Introduce dedicated SignatureDocumentation message type#385
jupblb wants to merge 2 commits intomainfrom
michal/signature-doc

Conversation

@jupblb
Copy link
Copy Markdown
Collaborator

@jupblb jupblb commented Apr 3, 2026

SymbolInformation.signature_documentation previously reused the Document message type, even though Document is designed to represent a source file on disk (with a "required" relative_path, etc.). This PR introduces a dedicated SignatureDocumentation message with a subset of Document fields.

The new message preserves the same protobuf field numbers as Document for the shared fields, so old and new indexes are binary wire-compatible in both directions. The Document-only field numbers are reserved in SignatureDocumentation to prevent accidental reuse.

This change is not compliant with Protobuf best practices (shouldn't change the type of an existing field) but we're also pre-1.0.

Supersedes #299

jupblb added 2 commits April 3, 2026 17:29
Replace the reuse of Document for SymbolInformation.signature_documentation
with a dedicated SignatureDocumentation message. The new message contains only
the relevant fields (language, text, occurrences) and reserves Document's
field numbers (1, 3, 6) to maintain wire compatibility with older indexes.
@jupblb jupblb force-pushed the michal/signature-doc branch from d3d2e5c to 9073268 Compare April 3, 2026 15:43
@jupblb jupblb requested a review from JamyDev April 3, 2026 15:46
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.

1 participant