mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
make sure type cache is up to date
This commit is contained in:
parent
4377ae355f
commit
7c40c75c30
1 changed files with 3 additions and 0 deletions
|
@ -262,6 +262,9 @@ public class AddIncludeOnSelectionAction extends Action implements IUpdate {
|
|||
int[] types= {ICElement.C_CLASS, ICElement.C_UNION, ICElement.C_STRUCT, ICElement.C_ENUMERATION, ICElement.C_TYPEDEF};
|
||||
ITypeSearchScope scope = new TypeSearchScope();
|
||||
scope.add(unit.getCProject().getProject());
|
||||
if (!AllTypesCache.isCacheUpToDate(scope)) {
|
||||
AllTypesCache.updateCache(scope, monitor);
|
||||
}
|
||||
infos[0] = AllTypesCache.getTypes(scope, new QualifiedTypeName(name), types);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue