mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not evaluate file types in id index version if composite indexer is enabled
GitOrigin-RevId: cb1b04b25deeb8f2965b9acb1e784c5f82375fb6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1713964360
commit
5f523019fa
+2
-3
@@ -15,12 +15,11 @@ import java.util.Collection;
|
||||
public class IdIndexImpl extends IdIndex implements CustomInputsIndexFileBasedIndexExtension<IdIndexEntry> {
|
||||
@Override
|
||||
public int getVersion() {
|
||||
FileType[] types = FileTypeRegistry.getInstance().getRegisteredFileTypes();
|
||||
Arrays.sort(types, (o1, o2) -> Comparing.compare(o1.getName(), o2.getName()));
|
||||
|
||||
int version = super.getVersion();
|
||||
|
||||
if (!InvertedIndex.ARE_COMPOSITE_INDEXERS_ENABLED) {
|
||||
FileType[] types = FileTypeRegistry.getInstance().getRegisteredFileTypes();
|
||||
Arrays.sort(types, (o1, o2) -> Comparing.compare(o1.getName(), o2.getName()));
|
||||
for(FileType fileType:types) {
|
||||
if (!isIndexable(fileType)) continue;
|
||||
IdIndexer indexer = IdTableBuilding.getFileTypeIndexer(fileType);
|
||||
|
||||
Reference in New Issue
Block a user