Skip to content

Add go-to-definition for symbols in doc comments, Markdown and Tutorial files#2698

Open
Padmashree06 wants to merge 8 commits into
swiftlang:mainfrom
Padmashree06:emiting-symbol-graph
Open

Add go-to-definition for symbols in doc comments, Markdown and Tutorial files#2698
Padmashree06 wants to merge 8 commits into
swiftlang:mainfrom
Padmashree06:emiting-symbol-graph

Conversation

@Padmashree06

@Padmashree06 Padmashree06 commented Jun 20, 2026

Copy link
Copy Markdown

This PR introduces go-to-definition support for Markdown and Tutorial files along with symbols referenced in documentation comments in Swift files.

To enable this functionality, symbol graphs are now emitted during both the initial build and background indexing. The generated symbol graph data is then used to resolve symbols referenced in documentation files and navigate to their corresponding source definitions.

Changes

  • Emit symbol graphs during the initial build.
  • Emit symbol graphs during background indexing.
  • Add go-to-definition support for Markdown and Tutorial files using the generated symbol graph data.
  • Add go-to-definition support for symbols referenced in documentation comments in Swift files.

User Impact

Users can now invoke go-to-definition on symbols referenced in Markdown and Tutorial files, as well as Swift documentation comments, and navigate to the corresponding source definition.

@Padmashree06 Padmashree06 changed the title Emit Symbol Graphs and add go-to-definition support for Markdown and Tutorial files Add go-to-definition for symbols in doccComments, Markdown and Tutorial files Jun 23, 2026
@Padmashree06 Padmashree06 changed the title Add go-to-definition for symbols in doccComments, Markdown and Tutorial files Add go-to-definition for symbols in doc comments, Markdown and Tutorial files Jun 23, 2026
@matthewbastien

Copy link
Copy Markdown
Member

@swift-ci please test

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