Skip to content

Commit 69a6394

Browse files
authored
Merge pull request #2819 from MDoerner/HackFor2773
Hack for 2773
2 parents 817509e + ff42e3f commit 69a6394

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
@@ -704,6 +704,10 @@ private void ParseAllInternal(object requestor, CancellationToken token)
704704
{
705705
token.ThrowIfCancellationRequested();
706706

707+
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.
708+
709+
token.ThrowIfCancellationRequested();
710+
707711
State.RefreshProjects(_vbe);
708712

709713
token.ThrowIfCancellationRequested();

0 commit comments

Comments
 (0)