dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.85k stars 668 forks source link

Clickable link in types' tooltips #6762

Open dibarbet opened 9 months ago

dibarbet commented 9 months ago

Copied from https://github.com/microsoft/vscode-dotnettools/issues/781

Describe the feature you'd like

In Visual Studio when I hover over a type (FullAuditedAggregateRoot in this screenshot), a tooltip shows up. In this tooltip, I can click on any type that appears to go to the decompiled file or the source code of that type.

image

It's not the case in VS Code, in which every tooltip of a type is readonly. Yes its texts can be selected, but no clickable links are provided.

image

Can VS Code have the same behavior as in Visual Studio?

Alternatives considered

No response

Environment Information

No response

dibarbet commented 9 months ago

This is likely not possible as-is given the VSCode API for hover. Currently the colorization in hover comes from a C# formatted markdown code block. I don't believe we can insert links into the block.

Seems like we can either

  1. Have clickable links, but no coloring
  2. Have coloring, but not links.

Requires confirmation though.

minhtaile2712 commented 9 months ago

I wish we have solution for this soon (maybe from VS Code team), as using Visual Studio on Mac is depreciated and VS Code is the alternative one.

ShreyasJejurkar commented 9 months ago

This can be a feature request to the VSCode team if this is not supported actually.