Disable highlighting with a comment doesn't work

25 views
Skip to first unread message

Eli Arbel

unread,
Feb 9, 2015, 5:08:26 PM2/9/15
to resharpe...@googlegroups.com
Hi,

I've developed a ReSharper plugin (https://github.com/aelij/ReSharperPlugins/) that checks for missing ConfigureAwait(). When I try to disable a specific highlighting, ReSharper adds the comment, but the highlighting remains.

Is there something I need to add to the plugin to supports this? I have both v8 and v9 plugins, and they both behave the same.

Thanks,
Eli.

Matt Ellis

unread,
Feb 10, 2015, 4:45:52 AM2/10/15
to resharpe...@googlegroups.com
This needs to be handled before adding the highlight. ReSharper itself doesn't know anything about the comments - the highlighter needs to look for the comment, and only add the highlight if it can't find it. Fortunately, this is all handled for you with an extension method, so it's pretty easy to add support. Read this thread for details: https://devnet.jetbrains.com/message/5514300#5514300.

Regards
Matt
Reply all
Reply to author
Forward
0 new messages