A documentation comment that contains a link is incorrectly displayed on the Razor page (Blazor application)
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
The following documentation comment for a Blazor component with a
/// <summary> /// See <see cref="MainLayout">Test</see> end of Test. /// </summary>
The same documentation comment is displayed as expected in the .cs file.
See the following screenshots:
Expected Behavior
A documentation comment should be displayed in Intellisense on a Razon page correctly without the tag:
Steps To Reproduce
See the following sample project which illustrates the issue for the 'MyComponent' class: https://github.com/LanetteDevEx/Microsoft-Blazor-Issue-Sample-Project/tree/master
Exceptions (if any)
No response
.NET Version
7.0.102
Anything else?
Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.4.4
@phil-allen-msft this is a tooling issue.
Our Regex for <see> tags only supports self-closing tags: https://github.com/dotnet/razor/blob/main/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Tooltip/DocCommentHelpers.cs#L16
It also only supports cref but the tag itself supports href and langword too