mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
clear the old cache entries
This commit is contained in:
parent
02e31a94fd
commit
56bf0c46ce
1 changed files with 2 additions and 1 deletions
|
@ -463,7 +463,6 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
|
|||
IProject project = cproject.getProject();
|
||||
IPathEntryStore store = getPathEntryStore(project);
|
||||
store.setRawPathEntries(project, newRawEntries);
|
||||
resolvedMap.remove(cproject);
|
||||
} catch (CoreException e) {
|
||||
throw new CModelException(e);
|
||||
}
|
||||
|
@ -647,6 +646,8 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
|
|||
ICProject cproject = manager.create(project);
|
||||
try {
|
||||
IPathEntry[] oldResolvedEntries = getResolvedPathEntries(cproject);
|
||||
// Clear the old cache entries.
|
||||
resolvedMap.remove(cproject);
|
||||
IPathEntry[] newResolvedEntries = getResolvedPathEntries(cproject);
|
||||
ICElementDelta[] deltas = generatePathEntryDeltas(cproject, oldResolvedEntries, newResolvedEntries);
|
||||
if (deltas.length > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue