Is it possible to remove already applied editor tags? I only found a way to add new tags, but this doesn't allow me to override or remove existing tags.
As a sidenote, my scenario is the followin开发者_如何学Pythong: I'm trying to add a new keyword to the C# language. My first step is to prevent the keyword from being indicated as an error by ReSharper. I believe ReSharper added an ErrorTag
on the invalid keyword, which is the one I am trying to remove/override.
It would appear that because editor tags are setup via Attributes on classes, you won't be able to remove tags from extensions that you own, in this case ReSharper. I think that if you want to achieve your described goal you are just going to have to deal with the error indications.
From MSDN:
[Export(typeof(ITaggerProvider))]
[ContentType("text")]
[TagType(typeof(TestTag))]
internal class TestTaggerProvider : ITaggerProvider
You can see the 'TagType' attribute on the class 'TestTaggerProvider' that actual does the tagging within the IDE.
精彩评论