Skip to content

Commit 453f940

Browse files
committed
reinstated sleep-n-parse at startup (1000ms delay); parser state doesn't seem to update the commandbar now
1 parent 48d5ada commit 453f940

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

RetailCoder.VBE/App.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Globalization;
55
using System.Linq;
66
using System.Runtime.InteropServices.ComTypes;
7+
using System.Threading.Tasks;
78
using System.Windows.Forms;
89
using Microsoft.Vbe.Interop;
910
using NLog;
@@ -118,6 +119,8 @@ public void Startup()
118119
_appMenus.Initialize();
119120
_appMenus.Localize();
120121

122+
Task.Delay(1000).ContinueWith(t => _parser.State.OnParseRequested(this));
123+
121124
_hooks.HookHotkeys();
122125
_hooks.Attach();
123126
}

Rubberduck.Parsing/VBA/RubberduckParserState.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ public bool RemoveDeclaration(Declaration declaration)
375375

376376
/// <summary>
377377
/// Ensures parser state accounts for built-in declarations.
378-
/// This method has no effect if built-in declarations have already been loaded.
379378
/// </summary>
380379
/// <summary>
381380
/// Requests reparse for specified component.

0 commit comments

Comments
 (0)