..
..
..
editor.Document.Text = "..source code..";
private void SimpleTest()
{
// Try and ensure the compilation unit is up-to-date
SemanticParserService.WaitForParse(SemanticParserServiceRequest.GetParseHashKey(editor.Document, editor.Document));
WaitFor doesn't wait.... I tried "WaitForParse(..., 5000) and nothing.
ICompilationUnit compilationUnit = (ICompilationUnit)editor.Document.SemanticParseData;
}
The above code only work after I call "SimpleTest" twice.
..
..
editor.Document.Text = "..source code..";
private void SimpleTest()
{
// Try and ensure the compilation unit is up-to-date
SemanticParserService.WaitForParse(SemanticParserServiceRequest.GetParseHashKey(editor.Document, editor.Document));
WaitFor doesn't wait.... I tried "WaitForParse(..., 5000) and nothing.
ICompilationUnit compilationUnit = (ICompilationUnit)editor.Document.SemanticParseData;
}
The above code only work after I call "SimpleTest" twice.