dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.99k stars 4.03k forks source link

Clicking on inheritance margin does not open up (potentially due to VS being in Chinese) #53708

Closed ahdung closed 2 years ago

ahdung commented 3 years ago

Sorry about ask this question in here.

.netfx Winform project. This icon appears after upgrading VS to 16.10.0.

image

CyrusNajmabadi commented 3 years ago

It shows the inheritance chain for the type (the classes it inherits from and the interfaces it implements). Clicking on it will let you easily jump to those. See https://devblogs.microsoft.com/visualstudio/visual-studio-2019-v16-10-and-v16-11-preview-1-are-available-today/#visualize-and-navigate-inheritance-chains

ahdung commented 3 years ago

Thank you. But when I hover on it, or click/right click it, nothing happen. My OS: Windows server 2008 R2 SP1 VS using chinese language recording

CyrusNajmabadi commented 3 years ago

Reactivating. @Cosifne can you look into this? @ahdung thanks for the report!

Cosifne commented 3 years ago

Sorry for the late response, I was on vacation when this issue is created.

@ahdung The problem you show is quite weird, I haven't encountered this when using the margin. (Also tested in Chinese Language) I even don't the the tooltip when the mouse is hoovering over the margin.

My best guess is, other margin 'hide' the inheritance margin. Could turn off the margin by tools -> text editor -> advanced -> show inheritance margin and see if there is any other margin? Or have you installed other extensions that also provide margin?

In all other cases, could you try turning it off -> on to refresh the margin? If this still doesn't work then this might be a bug in the editor.

ahdung commented 3 years ago

@Cosifne Sorry for late response. I do using ReSharper, and it is probably the reason, my test:

So just suspend R# not work, must disable it. Maybe I should report this to JetBrains. Thank you sirs.

silkfire commented 3 years ago

I got the issue with all extensions disabled.

Otiel commented 3 years ago

Same issue here, disabling Resharper fixed it.

For reference, an issue has been created on JetBrains bug tracker by ahdung: https://youtrack.jetbrains.com/issue/RSRP-484864

Cosifne commented 2 years ago

To anyone else who might hit this. Now Inheritance margin of Visual Studio could be placed in a separate margin. (Option under Text Editor -> C#/VB -> Inheritance Margin -> Combine inheritance margin with Indicator Margin) My best guess about Resharper is it provides its own left margin above Visual Studio. (The left margin of VS is quite crowded) But in any case, the option should be the best solution.

ahdung commented 2 years ago

@Cosifne Sorry, there's another issue I'd please you to take a look, the developercommunity has no response for a long time. It's about the appearance of VS:

VS2022 17.x has a weird border on windows 2008 R2(I guess windows7 is same) image

Cosifne commented 2 years ago

Hi ahdung,

The feedback ticket you posted is not related to Roslyn, so sorry I can't provide any help on that. From the screenshot I feel It's probably a issue related to the VS Shell. However, I can't tell the reason because I am not an expert in that area.

From the status of the ticket it seems like it has been directed to the corresponding team, and it's probably in someone's backlog.

ahdung commented 2 years ago

@Cosifne I understand, Thank you anyway.