Skip to content

ASP.NET TagHelper tooltip is sometimes malformed and/or missing content #5401

Open

Description

Issue Description

Sometimes the description text of a tag helper shows malformed with parts of it missing or in a different text size than the rest.

Some of the information autogenerated in the Dotnet Information section doesn't look correct. I have a global.json in my project and it's pinned to 6.0.401 of the sdk, that's not reflected in the report though.

Steps to Reproduce

  1. Clone https://github.com/xt0rted/heroicons-tag-helper
  2. Run npm ci
  3. Build
  4. Navigate to sample/Views/Home/Index.cshtml and hover over one of the <heroicon-* tags.

I've tried two versions of the description text on the IconFocusableTagHelper class as follows:

/// <summary>
/// Tag helper that sets <code>focusable="false"</code> on <see cref="IconTagHelper"/> instances.
/// </summary>

and

/// <summary>
/// Tag helper that sets <c>focusable</c> to <c>false</c> on <see cref="IconTagHelper"/> instances.
/// </summary>

Expected Behavior

For the full text to display, marked up, in the tool tip and when multiple tag helpers exist for each of the descriptions to display similarly.

This is how it looks in Visual Studio (it has its own bug of supporting <code> but not <c> in these tooltips, but that's been reported).

Screenshot 2022-10-09 031524

Actual Behavior

With the first description the <code>focusable="false"</code> segment doesn't display at all.

This is what the second description gives which is similar to the first way, only there's no missing text.

image

Logs

OmniSharp log

Starting OmniSharp server at 10/9/2022, 3:21:35 AM Target: c:\dev\xt0rted\heroicons-tag-helper\HeroiconsTagHelper.sln

OmniSharp server started with .NET 7.0.100-rc.1.22431.12
.
Path: c:\Users\brian.vscode\extensions\ms-dotnettools.csharp-1.25.0-win32-x64.omnisharp\1.39.0-net6.0\OmniSharp.dll
PID: 91716

Starting OmniSharp on Windows 10.0.22000.0 (x64)
info: OmniSharp.Services.DotNetCliService
Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
info: OmniSharp.Services.DotNetCliService
Using the 'dotnet' on the PATH.
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 7 MSBuild instance(s)
1: .NET Core SDK 7.0.100 17.4.0 - "C:\Program Files\dotnet\sdk\7.0.100-rc.1.22431.12"
2: .NET Core SDK 7.0.100 17.3.0 - "C:\Program Files\dotnet\sdk\7.0.100-preview.6.22352.1"
3: .NET Core SDK 6.0.401 17.3.1 - "C:\Program Files\dotnet\sdk\6.0.401"
4: .NET Core SDK 6.0.304 17.2.0 - "C:\Program Files\dotnet\sdk\6.0.304"
5: .NET Core SDK 6.0.203 17.1.1 - "C:\Program Files\dotnet\sdk\6.0.203"
6: .NET Core SDK 6.0.202 17.1.1 - "C:\Program Files\dotnet\sdk\6.0.202"
7: .NET Core SDK 6.0.100 16.10.0 - "C:\Program Files\dotnet\sdk\6.0.100-preview.3.21202.5"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: .NET Core SDK 7.0.100 17.4.0 - "C:\Program Files\dotnet\sdk\7.0.100-rc.1.22431.12"
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.MSBuild.ProjectSystem
Detecting projects in 'c:\dev\xt0rted\heroicons-tag-helper\HeroiconsTagHelper.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\dev\xt0rted\heroicons-tag-helper\src\HeroiconsTagHelper.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\dev\xt0rted\heroicons-tag-helper\test\HeroiconsTagHelperTests.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\dev\xt0rted\heroicons-tag-helper\sample\Sample.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\dev\xt0rted\heroicons-tag-helper\generator\IconSourceGenerator.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\dev\xt0rted\heroicons-tag-helper'.
info: OmniSharp.Script.ScriptProjectSystem
Did not find any CSX files
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\dev\xt0rted\heroicons-tag-helper' on host 150428.
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\dev\xt0rted\heroicons-tag-helper\src\HeroiconsTagHelper.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\dev\xt0rted\heroicons-tag-helper\src\HeroiconsTagHelper.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\dev\xt0rted\heroicons-tag-helper\src\HeroiconsTagHelper.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\dev\xt0rted\heroicons-tag-helper\test\HeroiconsTagHelperTests.csproj
info: OmniSharp.OmniSharpWorkspace
Miscellaneous file: c:\dev\xt0rted\heroicons-tag-helper\sample\Views\Home\Index.cshtml__virtual.cs added to workspace
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\dev\xt0rted\heroicons-tag-helper\test\HeroiconsTagHelperTests.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\dev\xt0rted\heroicons-tag-helper\test\HeroiconsTagHelperTests.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\dev\xt0rted\heroicons-tag-helper\sample\Sample.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\dev\xt0rted\heroicons-tag-helper\sample\Sample.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\dev\xt0rted\heroicons-tag-helper\sample\Sample.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\dev\xt0rted\heroicons-tag-helper\generator\IconSourceGenerator.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\dev\xt0rted\heroicons-tag-helper\generator\IconSourceGenerator.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\dev\xt0rted\heroicons-tag-helper\generator\IconSourceGenerator.csproj'
info: OmniSharp.MSBuild.ProjectManager
Update project: HeroiconsTagHelper
info: OmniSharp.MSBuild.ProjectManager
Update project: HeroiconsTagHelperTests
info: OmniSharp.MSBuild.ProjectManager
Update project: Sample
info: OmniSharp.MSBuild.ProjectManager
Update project: IconSourceGenerator

C# log

This was empty

Environment information

VSCode version: 1.71.2
C# Extension: 1.25.0

Dotnet Information .NET SDK: Version: 7.0.100-rc.1.22431.12 Commit: f1cf61e1c0

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22000
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.100-rc.1.22431.12\

Host:
Version: 7.0.0-rc.1.22426.10
Architecture: x64
Commit: 06aceb7015

.NET SDKs installed:
2.1.818 [C:\Program Files\dotnet\sdk]
5.0.103 [C:\Program Files\dotnet\sdk]
3.1.423 [C:\Program Files\dotnet\sdk]
6.0.203 [C:\Program Files\dotnet\sdk]
5.0.214 [C:\Program Files\dotnet\sdk]
5.0.303 [C:\Program Files\dotnet\sdk]
5.0.408 [C:\Program Files\dotnet\sdk]
7.0.100-preview.3.21202.5 [C:\Program Files\dotnet\sdk]
6.0.202 [C:\Program Files\dotnet\sdk]
6.0.203 [C:\Program Files\dotnet\sdk]
6.0.304 [C:\Program Files\dotnet\sdk]
6.0.401 [C:\Program Files\dotnet\sdk]
8.0.100-preview.6.22352.1 [C:\Program Files\dotnet\sdk]
7.0.100-rc.1.22431.12 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0-preview.3.21201.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-preview.6.22330.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-rc.1.22427.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0-preview.3.21201.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-preview.6.22324.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-rc.1.22426.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0-preview.3.21201.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0-preview.6.22351.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0-rc.1.22427.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
arm64 [C:\Program Files\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\arm64\InstallLocation]
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version
auto-rename-tag formulahendry 0.1.10
azure-account ms-vscode 0.11.1
azurerm-vscode-tools msazurermtools 0.15.7
azurite Azurite 3.19.0
cake-vscode cake-build 2.0.0
code-spell-checker streetsidesoftware 2.10.1
codespaces GitHub 1.10.6
color-info bierner 0.7.0
comment-tagged-templates bierner 0.3.1
copilot GitHub 1.50.6974
copilot-labs GitHub 0.2.221
csharp ms-dotnettools 1.25.0
data-workspace-vscode ms-mssql 0.3.0
debugger-for-edge msjsdiag 1.0.15
dotenv mikestead 1.0.1
dotnet-test-explorer formulahendry 0.7.8
EditorConfig EditorConfig 0.16.4
emojisense bierner 0.9.1
empty-indent DmitryDorofeev 0.2.0
escape-string cvbge 1.1.0
fontawesome-autocomplete Janne252 1.3.1
github-markdown-preview bierner 0.3.0
gitlens eamodio 12.2.2
headwind heybourn 2.0.0
intellicode-api-usage-examples VisualStudioExptTeam 0.2.4
lit-html bierner 1.11.1
markdown-all-in-one yzhang 3.4.3
markdown-checkbox bierner 0.3.3
markdown-emoji bierner 0.3.0
markdown-footnotes bierner 0.0.7
markdown-mermaid bierner 1.15.2
markdown-preview-github-styles bierner 1.0.1
markdown-shiki bierner 0.1.1
markdown-yaml-preamble bierner 0.1.0
msbuild-project-tools tintoy 0.4.9
mssql ms-mssql 1.16.0
npm-intellisense christian-kohler 1.4.2
nunjucks ronnidc 0.3.1
path-intellisense christian-kohler 2.8.1
postcss csstools 1.0.9
powershell ms-vscode 2022.8.5
prettier-vscode esbenp 9.9.0
remote-wsl ms-vscode-remote 0.66.3
sql-bindings-vscode ms-mssql 0.3.0
sql-database-projects-vscode ms-mssql 0.19.0
svg-preview SimonSiefke 2.8.3
t4-support zbecknell 0.6.0
theme-monokai-light anoff 1.2.0
vscode-azurefunctions ms-azuretools 1.8.1
vscode-azureresourcegroups ms-azuretools 0.5.6
vscode-commons redhat 0.0.6
vscode-css-formatter aeschli 1.0.2
vscode-docker ms-azuretools 1.22.1
vscode-dotnet-runtime ms-dotnettools 1.5.0
vscode-eslint dbaeumer 2.2.6
vscode-faker deerawan 2.0.0
vscode-github-actions me-dutour-mathieu 3.0.1
vscode-icons vscode-icons-team 11.19.0
vscode-jest Orta 4.6.0
vscode-jest-runner firsttris 0.4.57
vscode-js-annotations lannonbr 0.11.0
vscode-js-template-literal icanhasjonas 0.1.0
vscode-json5 mrmlnc 1.0.0
vscode-markdownlint DavidAnson 0.48.1
vscode-mjml DanielKnights 2.4.10
vscode-peacock johnpapa 4.2.2
vscode-pigments jaspernorth 2.0.0
vscode-pull-request-github GitHub 0.50.0
vscode-sort-json richie5um2 1.20.0
vscode-tailwindcss bradlc 0.8.7
vscode-thunder-client rangav 1.19.7
vscode-todo-highlight wayou 1.0.5
vscode-yaml redhat 1.10.1
vscodeintellicode VisualStudioExptTeam 1.2.28
xml DotJoshJohnson 2.5.1
xunitsnippets spencer-farley 1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions