implement indexing with CompositeDataIndexer (attach project to indexed file)

GitOrigin-RevId: f30e9fc9bb2681ae31fc277da8399cab14b8a649
This commit is contained in:
Dmitry Batkovich
2019-12-17 14:06:19 +00:00
committed by intellij-monorepo-bot
parent 9ccf528c27
commit b95a5addee
6 changed files with 27 additions and 13 deletions
@@ -155,7 +155,7 @@ public class PersistentSubIndexerVersionEnumeratorTest extends LightJavaCodeInsi
VirtualFile file = file(attribute);
file.putUserData(ATTRIBUTE_KEY, attribute);
try {
myMap.setIndexedState(((VirtualFileWithId) file).getId(), new IndexedFileImpl(file));
myMap.setIndexedState(((VirtualFileWithId) file).getId(), new IndexedFileImpl(file, getProject()));
}
catch (IOException e) {
LOG.error(e);
@@ -169,7 +169,7 @@ public class PersistentSubIndexerVersionEnumeratorTest extends LightJavaCodeInsi
VirtualFile file = file(attribute);
file.putUserData(ATTRIBUTE_KEY, attribute);
try {
return myMap.isIndexed(((VirtualFileWithId)file).getId(), new IndexedFileImpl(file));
return myMap.isIndexed(((VirtualFileWithId)file).getId(), new IndexedFileImpl(file, getProject()));
}
catch (IOException e) {
LOG.error(e);