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

Enhanced code completion item tooltips #59

Open
citizenmatt opened this issue Sep 3, 2015 · 2 comments
Open

Enhanced code completion item tooltips #59

citizenmatt opened this issue Sep 3, 2015 · 2 comments
Labels

Comments

@citizenmatt
Copy link
Contributor

Would be lovely to see this in the tooltips for code completion items...

@MrJul
Copy link
Owner

MrJul commented Sep 3, 2015

I'd like this too. Last time I checked, there was no extensibility point available, but that was a while ago (ReSharper 8.2 probably). Will have a look again.

@MrJul MrJul added the feature label Sep 3, 2015
@citizenmatt
Copy link
Contributor Author

So I've just had to take a look in this area for other reasons, so thought I'd add some info. I think it's possible to override the formatting of tooltips for declared elements by either adding an instance of IDeclaredElementDescriptionProvider with a higher priority than any other IDeclaredElementDescriptionProvider implementation and that always returned a value, but then it would have to take over the formatting for all declared element descriptions - CSS, JS, CLR, and HTML.

Alternatively, you could create a new IDeclaredElementDescriptionPresenter component and use IHideImplementation<DeclaredElementDescriptionPresenter>, which would also allow overriding everything, but you could then defer to the existing IDeclaredElementDescriptionProvider instances.

But, this wouldn't do anything for any lookup item that implements IDescriptionProvidingLookupItem, which is CSS and JSON, and possibly more.

And I'm not sure this covers all of the ways to display code completion tooltips, so it might not work for everything...

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

No branches or pull requests

2 participants