Skip to content

Commit 753825f

Browse files
committed
Prevent hard-coded declarations from having their references cleared for parse attempts with no changes
1 parent c7f5c08 commit 753825f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Rubberduck.Parsing/VBA/RubberduckParser.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,6 @@ private void ParseAll()
246246
}
247247
}
248248

249-
SyncComReferences(State.Projects);
250-
AddBuiltInDeclarations();
251-
252249
if (toParse.Count == 0)
253250
{
254251
if (componentsRemoved) // trigger UI updates
@@ -264,11 +261,9 @@ private void ParseAll()
264261
{
265262
State.SetModuleState(component, ParserState.Pending);
266263
}
267-
foreach (var component in unchanged)
268-
{
269-
// note: seting to 'Parsed' would include them in the resolver walk. 'Ready' excludes them.
270-
State.SetModuleState(component, ParserState.Ready);
271-
}
264+
265+
SyncComReferences(State.Projects);
266+
AddBuiltInDeclarations();
272267

273268
// invalidation cleanup should go into ParseAsync?
274269
foreach (var key in _componentAttributes.Keys)

0 commit comments

Comments
 (0)