resharper-devguide icon indicating copy to clipboard operation
resharper-devguide copied to clipboard

Add "Related file" knowledge

Open mterwoord opened this issue 9 years ago • 6 comments

I want to add support for my framework. For that, I need a way to "feed" ReSharper with "Related Files" rules, knowledge, info, etc. Any way to do that?

mterwoord avatar Jun 08 '15 06:06 mterwoord

Sorry, missed this comment. I'm not sure what you're asking with this question, it needs more detail. Also, if it's a question about working with the SDK, rather than an issue with the documentation, it would probably be better to post to StackOverflow (with the resharper tag) or to the Google Group.

citizenmatt avatar Jul 07 '15 13:07 citizenmatt

Not sure if my "problem" is with the SDK or the docs, but I'd expect info on giving resharper the info needed in the docs.

mterwoord avatar Jul 07 '15 13:07 mterwoord

Yep, I agree. Unfortunately, writing the docs is a lengthy process, as they need to cover the topic more thoroughly than just addressing a particular question. Raising an issue here will highlight that the docs need updating, and that work will begin, but it won't necessarily answer your particular question in a timely fashion. Something like StackOverflow or the Google group will also get the question out to the wider community, and also in a place where it's likely to be found again when searching. This issue tracker isn't the best place to come to search for answers on implementation, more for tracking what parts of the docs need to be updated. I'd expect to add an issue here in response to a question on SO.

What info are you trying to give to ReSharper?

citizenmatt avatar Jul 07 '15 13:07 citizenmatt

I have a library which uses certain conventions. I want to use Navigate to Related Files on model class, and then my resharper plugin should be able to figure out which interface implementations to show.. I'm just assuming the SDK is able to let me do this.

I'll work on some SO questions then..

mterwoord avatar Jul 07 '15 13:07 mterwoord

You might want to take a look at these SO answers:

http://stackoverflow.com/questions/30918419/create-a-generic-type-to-find-implementations-of-in-a-resharper-plugin

and

http://stackoverflow.com/questions/31044308/how-do-i-create-a-itypeelement-with-represents-a-closed-generic-type-in-a-resh

citizenmatt avatar Jul 07 '15 14:07 citizenmatt

Awesome. I don't have time now, but those 2 definitely seem to provide me with some good info! Thanks!

mterwoord avatar Jul 07 '15 15:07 mterwoord