Skip to content
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

Merged
merged 2 commits into from
Nov 9, 2024

Conversation

akhera99
Copy link
Member

@akhera99 akhera99 commented Nov 8, 2024

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.

@akhera99 akhera99 requested a review from genlu November 8, 2024 01:11
@akhera99 akhera99 requested a review from a team as a code owner November 8, 2024 01:11
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 8, 2024
@@ -151,6 +152,10 @@ protected override NullableFlowState GetNullabilityAnalysis(SemanticModel semant
{
return null;
}
if (document.IsRazorDocument())
Copy link
Member

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

@akhera99 akhera99 enabled auto-merge (squash) November 9, 2024 00:22
@akhera99 akhera99 merged commit 53bf365 into dotnet:main Nov 9, 2024
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Nov 9, 2024
@@ -151,6 +152,10 @@ protected override NullableFlowState GetNullabilityAnalysis(SemanticModel semant
{
return null;
}
if (document.IsRazorDocument())
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type name of EditorFeaturesOnTheFlyDocsElement appears at the end of QuickInfo in Razor component
4 participants