public override void Initialize() { base.Initialize(); //ensure that the schema service is initialised, or code completion may take a couple of seconds to trigger HtmlSchemaService.Initialise(); }
void ResolveProvider() { try { HtmlSchema hs = HtmlSchemaService.GetSchema(substituteProvider); if (hs != null) { provider = hs.CompletionProvider; } } catch (StackOverflowException) { MonoDevelop.Core.LoggingService.LogWarning( "HTML doctype '{0}' contains a substitute schema reference that is either cyclical or too deep, and hence cannot be resolved.'", name); } if (provider == null) { provider = new EmptyXmlCompletionProvider(); MonoDevelop.Core.LoggingService.LogWarning( "HTML doctype '{0}' cannot find substitute schema '{1}'", name, substituteProvider); } substituteProvider = null; }