Skip to content

Commit 57098fb

Browse files
committed
Hack for issue #2773
1 parent cd8202f commit 57098fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Rubberduck.Parsing/VBA/ParseCoordinator.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,10 @@ private void ParseAllInternal(object requestor, CancellationToken token)
702702
{
703703
token.ThrowIfCancellationRequested();
704704

705+
Thread.Sleep(50); //Simplistic hack to give the VBE time to do its work in case the parsing run is requested from an event handler.
706+
707+
token.ThrowIfCancellationRequested();
708+
705709
State.RefreshProjects(_vbe);
706710

707711
token.ThrowIfCancellationRequested();

0 commit comments

Comments
 (0)