Roslyn: Cannot untick "Show C# and Visual Basic References"

Created on 12 Jun 2019  路  3Comments  路  Source: dotnet/roslyn

VSF_TYPE_MARKDOWNI would like to remove the text above methods which says "x references | y exceptions" but when I go to Tools>Options>Text Editor>All Lanaguages>CodeLens I find the "Show C# and Visual Basic References" checkbox is ticked and greyed out. I would rather not disable CodeLens outright to disable this text.

_This issue has been moved from https://developercommunity.visualstudio.com/content/problem/590497/cannot-untick-show-c-and-visual-basic-references.html
VSTS ticketId: 903135_
_These are the original issue comments:_

Visual Studio Feedback System on 6/2/2019, 11:19 PM (9 days ago):

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

_These are the original issue solutions:_
(no solutions)

Area-External Area-IDE Developer Community Feature Request IDE-IntelliSense Need Design Review

All 3 comments

Design review summary: This limitation stems from a long-standing requirement that at least one item be visible for each CodeLens entry. Otherwise, users could end up seeing a blank space where CodeLens is expected to appear.

Some entries, such as test status, are dynamic and appear for some but not all CodeLens lines. However, the References portion is always relevant.

We are interested in finding a way to resolve this limitation without requiring references show, but aren't sure how to accomplish this while still addressing the underlying concern.

Conclusion: This issue is needs a proposal to address the underlying system limitation while still allowing users to unselect References.

Just want to add to this for the purpose of putting my 2 cents on the design aspect of it. I'm hyper sensitive to white space changes, coming from a c++ background. I think the most frustrating part is to see what looks like a blank space in the case of a class declaration under a namespace, only to try and delete it and realize that doing so removes the curly brace. My eyes are constantly gravitating towards it because it looks like an extra white space line.

I should note that it isn't as bad if you do same line braces but... I don't lol. +1 for being able to remove just the " references" line.

I think the most frustrating part is to see what looks like a blank space in the case of a class declaration under a namespace, only to try and delete it and realize that doing so removes the curly brace.

@jsandersr can you give a repro of this? That sounds like a bug. As @sharwell points out the point is that there should always be something on that fake half-line. You should never be able to see just a blank line.

Was this page helpful?
0 / 5 - 0 ratings