-
Notifications
You must be signed in to change notification settings - Fork 53
Add XML documentation with see cref links to generated code for better IDE navigation #535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…r IDE navigation Co-authored-by: YunchuWang <[email protected]>
Co-authored-by: YunchuWang <[email protected]>
|
@copilot fix failed tests |
…for Mixed_OrchestratorActivityEntity_ClassBasedSyntax test Co-authored-by: YunchuWang <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enhances the code generator to add XML documentation comments with <see cref> links to all generated extension methods. This improvement enables IDE "Go to Definition" functionality, allowing developers to navigate directly from generated extension methods (like CallMyActivityAsync) to the actual activity, orchestrator, or Azure Function implementation.
Key Changes:
- Added XML documentation with
<summary>and<inheritdoc>tags to generated extension methods - Included
<see cref>links that reference the source class/method for IDE navigation - Applied documentation consistently across orchestrator scheduling, sub-orchestrator calls, and activity calls
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Generators/DurableTaskSourceGenerator.cs | Added XML documentation generation to AddOrchestratorCallMethod, AddSubOrchestratorCallMethod, and both AddActivityCallMethod overloads, with <see cref> links to source types/methods |
| test/Generators.Tests/ClassBasedSyntaxTests.cs | Updated test expectations to include the new XML documentation for class-based orchestrators and activities |
| test/Generators.Tests/AzureFunctionsTests.cs | Updated test expectations to include the new XML documentation for Azure Functions-based activities and orchestrators |
|
Fixed #378 |

DurableTaskSourceGenerator.csto add XML documentation with<see cref="..."/>links to:Summary
This PR adds XML documentation comments with
<see cref="..."/>links to the generated extension methods. This enables IDE "Go to Definition" functionality to navigate directly from the generated methods to the actual activity/orchestrator classes.Example generated code (before):
Example generated code (after):
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.