Add tooltip / quickfix for types which implement IDisposable

Hi all,

I'm thinking of a plugin which to pop up a tooltip + quickfix if an IDisposable class is instantiated without a USING clause.  So:

a) does such a thing exist?
b) does anyone think it's a good (or terrible?) idea?
c) I'm game to try and write it, if people like the idea and it doesn't already exist. The OM/API seems pretty rich (== time consuming) so can someone point to me a relevant code snippet which might help me hit the ground running?

TIA!

4 comments

Hello Addy,

I'd suggest you to wait a bit and develop plugin for ReSharper 4.5. Meanwhile,
you can visit http://www.jetbrains.net/confluence/display/ReSharper/ReSharper4Plugin+Development
and download powertoys, which have some analysis and quick fix examples.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> Hi all,
IR>
IR> I'm thinking of a plugin which to pop up a tooltip + quickfix if an
IR> IDisposable class is instantiated without a USING clause. So:
IR>
IR> a) does such a thing exist?
IR>
IR> b) does anyone think it's a good (or terrible?) idea?
IR>
IR> c) I'm game to try and write it, if people like the idea and it
IR> doesn't already exist. The OM/API seems pretty rich (== time
IR> consuming) so can someone point to me a relevant code snippet which
IR> might help me hit the ground running?
IR>
IR> TIA!
IR>
IR> ---
IR> Original message URL:
IR> http://www.jetbrains.net/devnet/message/5230381#5230381


0

orangy wrote:

you can visit http://www.jetbrains.net/confluence/display/ReSharper/ReSharper4Plugin+Development
and download powertoys, which have some analysis and quick fix examples.


Looks like broken link.
I reviewed PowerToys but there's no IQuickFix implementation...

Thanks

0

On 28.07.2011 20:50, Vadim Milichev wrote:

Looks like broken link.
I reviewed PowerToys but there's no IQuickFix implementation...


ReSharper PowerToys are now at CodePlex - http://resharperpowertoys.codeplex.com

0

Slava.Trenogin wrote:
ReSharper PowerToys are now at CodePlex - http://resharperpowertoys.codeplex.com


Thank you, I know..
I mean ReSharper PowerToys for 5.1.1 contain neither IQuickFix implementations nor QuickFixBase descendants.
Having no documentation it is too time consuming to back-engineer all the chain in resharper, say, HtmlObsoleteAnalysis, HtmlObsoleteHighlighting and related quickfixes, context actions so on.

Thanks

0

Please sign in to leave a comment.