dotnet / roslyn-sdk

Roslyn-SDK templates and Syntax Visualizer
MIT License
512 stars 257 forks source link

Roslyn analyzer tooltips not displaying escaped characters in IDE #1124

Closed jezzsantos closed 11 months ago

jezzsantos commented 12 months ago

I have a custom Analyzer for a rule SAS010

You can see it working here in the Rider IDE.

image

The resource string being defined for it looks like this:

    <data name="SAS010MessageFormat" xml:space="preserve">
        <value>Method '{0}' should return either a Task&lt;T&gt; or T, where T is either an 'ApiEmptyResult', 'ApiResult&lt;TResource, TResponse&gt;' or 'ApiPostResult&lt;TResource, TResponse&gt;'</value>
    </data>

The problem is that the tooltip that pops up does not show the < and > signs in this text: Task<T>. (top of screenshot) However, to be fair we do correctly see the escaped characters in the build warning (bottom of the screen shot).

Is this a Roslyn issue, or perhaps a Jetbrains Rider issue?

sharwell commented 11 months ago

I am not able to reproduce this in Visual Studio. image

jezzsantos commented 11 months ago

Raised here in Rider: https://youtrack.jetbrains.com/issue/RIDER-100057/Escaped-Characters-in-Roslyn-Analyzer-diagnostic-messages-are-not-displayed-correctly-in-the-IDE.