Skip to content

Implement DocCSymbolLinkDefinitionRequest for documentation preview - #2748

Draft
Padmashree06 wants to merge 7 commits into
swiftlang:mainfrom
Padmashree06:preview-links
Draft

Implement DocCSymbolLinkDefinitionRequest for documentation preview #2748
Padmashree06 wants to merge 7 commits into
swiftlang:mainfrom
Padmashree06:preview-links

Conversation

@Padmashree06

Copy link
Copy Markdown
Contributor

This PR adds implementation to DocCSymbolLinkDefinitionRequest to make symbol links clickable in the documentation preview of the editor.

Changes

  • Add implementation to DocCSymbolLinkDefinitionRequest.
  • Resolve the symbol link via the index, fetching symbol graphs on demand.
  • Return the definition location if found, or nil if the link can't be resolved.
  • Expose support via experimental server capabilities as sourcekit/textDocument/doccSymbolLinkDefinition.

User Impact

Symbol links are now clickable in the documentation preview, making the preview more interactive. Clicking a symbol link navigates to its definition if it's found, or shows an error if it can't be resolved.

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