Annotations vs. Inspections

Hi there, I'm creating a custom language plugin, and made a bunch of annotations with quick fixes. I wanted to have an option to  automatically resolve all the annotations with a specific quick fix. In looking into it, it seems it's only possible with an inspection. In looking into creating a custom inspection, I noticed that a lot of my logic would be duplicated between the existing Annotator and creating an inspection. So, from a broad view, should I entirely migrate all my annotations to inspections? Should they coexist somehow? 

0
3 comments

Hi,

we think of inspections as something which can be disabled, annotations - something which can't, something like compiler errors. What kind of problems do you have?

Anna

0
Avatar
Permanently deleted user

Hey Anna, heh, yeah totally fair to ask for context.

I'm making a markup-style language plugin' for MediaWiki. Currently, my annotations are for things that aren't errors (technically MediaWiki has no errors), but suggestions. Like "This is better done in this other way.." Instead of having to right click each annotation, and select the same quick fix, I would like to automatically resolve all of them (document wide) with the same quick fix. I ask about inspections since that was the only way I saw to resolve issue document-wide in the way I'd like to. Hope that helps, thanks in advance.

0

Hi Andrew,

Then, it looks like, you don't need an annotator but an inspection is a right choice. You would allow a user to configure the suggestions and quick fixes could be performed in batch for any scope of user choice.

Anna

0

Please sign in to leave a comment.