Skip to content

Source Generators: Insert Doc Link to target function #378

Description

Is your feature request related to a problem? Please describe.
Insert clickable doc reference into generated code so that navigation is not lost.

User Code

// Navigation to original code lost
await context.CallSomeActivity(new Input());

From GeneratedDurableTaskExtensions.cs

public static Task<System.Threading.Tasks.Task> CallSomeActivityAsync(this TaskOrchestrationContext ctx, Input input, TaskOptions? options = null)
{
    return ctx.CallActivityAsync<System.Threading.Tasks.Task>("SomeActivity", input, options);
}

Are there any existing GitHub discussions or issues filed that help give some context to this proposal?
Links to any previous discussions or issues providing context for the proposal.

Add a doc reference I can click through

/// <summary>
/// Call the Activity <see cref="SomeNamespace.SomeClass.SomeActivity" />.
/// </summary>
public static Task<System.Threading.Tasks.Task> CallSomeActivityAsync(this TaskOrchestrationContext ctx, Input input, TaskOptions? options = null)
{
    return ctx.CallActivityAsync<System.Threading.Tasks.Task>("SomeActivity", input, options);
}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions