Skip to content

Commit 5dd8a2d

Browse files
authored
Merge branch 'next' into next
2 parents e9fb7ca + 69a6394 commit 5dd8a2d

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)