Using the XmlSyntaxLanguage, I don't see a Unregister function to disable error squiggles. Based on your samples, it seems like one option would be:
I see that this works but I'm wondering if there's a more direct / simpler approach that I'm missing. Also, are there any potential side effects from using this approach? (am I disabling other things that I may not intend to disable?)
Thanks,
-Craig
[Modified at 05/14/2011 07:03 PM]
var codeDocumentTaggerProvider = _syntaxLanguage.GetService(typeof(CodeDocumentTaggerProvider<ParseErrorTagger>));
var squiggleTagQuickInfoProvider = _syntaxLanguage.GetService(typeof(SquiggleTagQuickInfoProvider));
_syntaxLanguage.UnregisterService(codeDocumentTaggerProvider.GetType());
_syntaxLanguage.UnregisterService(squiggleTagQuickInfoProvider.GetType());
Thanks,
-Craig
[Modified at 05/14/2011 07:03 PM]