是否可以删除已应用的编辑器标签?我只找到了一种添加新标签的方法,但这不允许我覆盖或删除现有标签。
作为旁注,我的场景如下:我正在尝试向 C# 语言添加一个新关键字。我的第一步是防止关键字被 ReSharper 指示为错误。我相信 ReSharperErrorTag
在无效关键字上添加了一个,这是我要删除/覆盖的关键字。
是否可以删除已应用的编辑器标签?我只找到了一种添加新标签的方法,但这不允许我覆盖或删除现有标签。
作为旁注,我的场景如下:我正在尝试向 C# 语言添加一个新关键字。我的第一步是防止关键字被 ReSharper 指示为错误。我相信 ReSharperErrorTag
在无效关键字上添加了一个,这是我要删除/覆盖的关键字。
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.