mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assert that index queries are to be performed in a read action
This commit is contained in:
@@ -804,7 +804,8 @@ public class FileBasedIndexImpl extends FileBasedIndex {
|
||||
@Nullable GlobalSearchScope filter,
|
||||
@Nullable VirtualFile restrictedFile) {
|
||||
ProgressManager.checkCanceled();
|
||||
myContentlessIndicesUpdateQueue.ensureUpToDate(); // some content full indices depends on contentless ones
|
||||
myContentlessIndicesUpdateQueue.ensureUpToDate(); // some contentful indices depends on contentless ones
|
||||
ApplicationManager.getApplication().assertReadAccessAllowed();
|
||||
if (!needsFileContentLoading(indexId)) {
|
||||
return; //indexed eagerly in foreground while building unindexed file list
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user