-
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
Bail out of on-the-fly-docs for razor documents #75818
Conversation
@@ -151,6 +152,10 @@ protected override NullableFlowState GetNullabilityAnalysis(SemanticModel semant | |||
{ | |||
return null; | |||
} | |||
if (document.IsRazorDocument()) |
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 use the extension method from EA.Razor.Api namespace, use the one under Microsoft.CodeAnalysis.Host
directly instead
https://github.com/dotnet/roslyn/blob/main/src/Workspaces/Core/Portable/Workspace/Host/DocumentService/Extensions.cs
@@ -151,6 +152,10 @@ protected override NullableFlowState GetNullabilityAnalysis(SemanticModel semant | |||
{ | |||
return null; | |||
} | |||
if (document.IsRazorDocument()) |
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.
this really needed a comment explaning wy we would nto get tehse results in razor.
Fixes: #75106
Razor doesn't seem to support the IViewElementFactory, so when the element was getting added to quick-info, it was never getting converted into UI.