Code Vision in Typescript files not showing anymore

Hi,

I remember that I saw the usages of a function in Typescript above it as a small annotation just like in the C# code. I know this functionality is called Code Vision and can be switched on/off in the settings / Editor / Code Vision.

I maybe have accidentally switched it off in Typescript by  right clicking on the annotation and choosing 'hide code vision...'. So now it is not shown anymore in my Typescript files, in C# it is still there.

I tried switching Code Vision off and on again but I cannot manage to see it in Typescript files anymore.

I had the problem with Rider 2022.3.3 and now after the update to 2023.1 Code Vision in Typescript files is still missing.

How can I activate it again for Typescript files? Is there a hidden setting somewhere?

Thanks in advance.

0
3 comments

Hello Pichler, thank you for your question.

I reproduced the problem. As far as I understand, Rider does not have the UI to re-enable the "Code Vision" for TypeScript. I've submitted a new issue to our bug tracker about it: RIDER-92353.

As a workaround, please open "%AppData%\JetBrains\Rider2023.1\options", open "editor.xml" file and remove the following block:

    <option name="disabledCodeVisionProviderIds">
      <set>
        <option value="references" />
      </set>
    </option>

After that restart Rider and check the problem once again. Does it help?

1

Hello Maria Pleskunina,

yes, the workaround solved my problem. I can see the usages "code vision" again in Typescript files.

Thank you for your help.

0

That's great! Happy to hear that :)

0

Please sign in to leave a comment.