-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Razor internals #71762
Razor internals #71762
Conversation
@@ -357,6 +357,11 @@ internal ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsyn | |||
return _solution.CompilationState.GetSourceGeneratorDiagnosticsAsync(this.State, cancellationToken); | |||
} | |||
|
|||
internal ValueTask<GeneratorDriverRunResult?> GetSourceGeneratorRunResultAsync(CancellationToken cancellationToken) |
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.
@jasonmalinowski In a previous version of this PR, we discussed if we should replace GetSourceGeneratorDiagnosticsAsync
with this method.
I chose to keep them separate because the diagnostics path actually returns data in the GeneratedFileReplacingCompilationTracker
path, where the run result just throws. If we can figure out what the semantics of get run result would be in the GeneratedFileReplacingCompilationTracker
then we could collapse them into a single method.
@jasonmalinowski @CyrusNajmabadi for thoughts. |
|
||
namespace Microsoft.CodeAnalysis.ExternalAccess.Razor | ||
{ | ||
internal static class RazorProjectExtensions |
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.
Don't we keep track of the internal APIs for those EA assemblies as well? If so, I don't see the corresponding change in InternalAPI.Unshipped.txt
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.
Good catch, addded.
@chsienki I don't have the context on why this is needed, but the change itself looks good to me. |
709c791
to
ed66ea8
Compare
d367299
to
b86e404
Compare
Expose an extension via Razor EA that gives access to the
GeneratorDriverRunResult
for a given project.