Roslyn: Button or link to show overloads of method.

Created on 23 Jul 2020  Â·  7Comments  Â·  Source: dotnet/roslyn

_This issue has been moved from a ticket on Developer Community._


Hi, Is there any chance for visual studio to make the + 〇 overloads clickable or someother way to simply show the overloads. At least I think it should be able to do by some mouse click.

https://stackoverflow.com/questions/9891656/visual-studio-how-to-show-overloads-in-intellisense

And I think the shortcut for this is really hard to remember and type.


Original Comments

Feedback Bot on 7/19/2020, 11:30 PM:

Thank you for taking the time to provide your suggestion.  We will do some preliminary checks to make sure we can proceed further.  We'll provide an update once the issue has been triaged by the product team.

Area-IDE Feature Request Need Design Review

All 7 comments

@CyrusNajmabadi @sharwell @jasonmalinowski let me know your thoughts on the following options:

Option 1 - Incorporate arrow functionality to quick info to view overloads:

image

Option 2 - Remove the +1 and insert a link in quick info:

image

Clicking the link opens signature help:

image

strong preference toward:

image

(though, i woudl just have the arrows at the start to look similar to sighelp).

@CyrusNajmabadi yeah may as well have it be the same.

I think option 1 is the smallest change we could make. Would like to try that and see what the reception is.

For the second option what I had in mind was still keep the (+1 overloads) text, just make that clickable. That way you're not losing the info if you didn't want the new feature.

So... in terms of impl... couldn't we just do this:

  1. if the user hovers over a symbol that has overlaods (i.e. method/index/generics/etc.)... then we:
  2. just pop up sig help, just without a particular 'parameter' selected.

Woudln't this just give the experience we want? i.e. we'd have the signatures with the up/down items as before. we'd just show normal symbol information under that, and not information about any particular parameter...

The only difference (i guess) is if up/down keystrokes are captured here. But i'm not certain it's a bad thing if they were captured. if it was a bad thing, we coudl easily change our controller to capture up/down for normal sig help, but not capture for quick-info-sig-help.

This seems super easy to prototype and try out.

Thoughts?

Proposal:

If the user hovers over a symbol that has overlaods (i.e. method/index/generics/etc.)... then we:
Show signature help, just without a particular 'parameter' selected.

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AceHack picture AceHack  Â·  3Comments

marler8997 picture marler8997  Â·  3Comments

codingonHP picture codingonHP  Â·  3Comments

AdamSpeight2008 picture AdamSpeight2008  Â·  3Comments

DavidArno picture DavidArno  Â·  3Comments