Creating QuickFix for Xml file

Hi,

I try to create the QuickFix for the xml file.I use with ElementProblemAnalyzer class for code analyzer. But Resharper does not call my analyzer. What is wrong?

This is example of my simple analyzer

ElementProblemAnalyzer(typeof (IXmlTag), HighlightingTypes = new[] {typeof (XmlErrorHighlighting)})]
public class MyXmlStructAnalyzer : ElementProblemAnalyzer<IXmlTag>
{
     protected override void Run(IXmlTag element, ElementProblemAnalyzerData data, IHighlightingConsumer consumer)
     {
          Console.WriteLine(element);
     }
}



I have ZoneMarker like this

ZoneMarker]
public class ZoneMarker :  IRequire<ILanguageJavaScriptZone>, IRequire<ICodeEditingZone>, IRequire<DaemonZone>
{
}


Thanks

1 comment
Comment actions Permalink

XML files don't support ElementProblemAnalyzer, and instead use IXmlAnalysisProvider and [XmlAnalysisProvider]. I don't know why, but there's a feature request to add support - RSRP-414011.

0

Please sign in to leave a comment.