![Avatar](https://secure.gravatar.com/avatar/2ba309e9c4dbdd99b236fc52b38a9f9a.jpg?s=64&d=identicon&r=g)
Hello,
Here is my case – I have editor embedded into a UserControl and I often use the ParseService to parse the document like thisEverything is working great except one case. Sometimes I don’t need to show the editor, but still need to load and parse the document. But I can't make it working - when the editor isn’t shown yet, the SemanticParseData is always empty. It is starts working again after I show the control. Is there a way to resolve this problem and to parse document while the control is hidden?
Thanks
Alex
Here is my case – I have editor embedded into a UserControl and I often use the ParseService to parse the document like this
Document doc = editor.Document;
string key = SemanticParserServiceRequest.GetParseHashKey(doc, doc);
SemanticParserService.WaitForParse(key);
CompilationUnit unit = doc.SemanticParseData as CompilationUnit;
Thanks
Alex