Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typeparam indistinguishable from param #189

Open
KyleKolander opened this issue May 3, 2024 · 7 comments
Open

typeparam indistinguishable from param #189

KyleKolander opened this issue May 3, 2024 · 7 comments

Comments

@KyleKolander
Copy link

When I have a function with XML Doc comments that include both typeparam and param, each of them show up in the enhanced tooltip as Parameter, so it's difficult (or at least not obvious) whether one of those Parameter lines is for an actual function parameter or for a generic type parameter. If this is already implemented, could you please reply with the setting(s) to change so this works as described here. Otherwise, could you implement it so that typeparam is displayed as Type or Generic Type or something like that, rather than Parameter?

@DimitarCC
Copy link
Collaborator

Can you please show a screenshot of that? I am not sure what exactly is the problem...

@KyleKolander
Copy link
Author

ReSharper EnhancedTooltip_001

ReSharper EnhancedTooltip_002

There you can see that the first two parameters (in the XML Doc comment) are typeparam, whereas all the others are just param. The enhanced tooltip shows all of them as if they are param, when in reality, those first two typeparam are not function parameters, they are generic types.

@DimitarCC
Copy link
Collaborator

OK the problem is that long labels are not very suitable to display in the tooltip...
So if i put Type Parameter as a label it will be quite long..... But i am not sure what else it can be so i may try it to see how it will look like...

@KyleKolander
Copy link
Author

Any luck with tis @DimitarCC ? How about instead of Parameter, just put Type? That would clearly distinguish it from the method parameters while also keeping it as a short label...

@DimitarCC
Copy link
Collaborator

Yes there is already a version displaying type params differently...

image

Use the attached nuget package and install it locally with enabled prerelease extensions.
JLebosquain.EnhancedTooltip.3.25.1-pre.nupkg.zip

@DimitarCC
Copy link
Collaborator

btw i was thinking to change the tooltip to use icons instead of text "Parameter", "Type param", etc...

Then will be more compact....

@KyleKolander
Copy link
Author

Cool! Either way is a helpful enhancement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants