mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Access project file index under read action with dispose check EA-110375
This commit is contained in:
+10
-6
@@ -846,12 +846,16 @@ public class ProjectLevelVcsManagerImpl extends ProjectLevelVcsManagerEx impleme
|
||||
|
||||
@Override
|
||||
public boolean isIgnored(VirtualFile vf) {
|
||||
if (Registry.is("ide.hide.excluded.files")) {
|
||||
return myExcludedIndex.isExcludedFile(vf);
|
||||
}
|
||||
else {
|
||||
return myExcludedIndex.isUnderIgnored(vf);
|
||||
}
|
||||
return ReadAction.compute(() -> {
|
||||
if (myProject.isDisposed()) return false;
|
||||
|
||||
if (Registry.is("ide.hide.excluded.files")) {
|
||||
return myExcludedIndex.isExcludedFile(vf);
|
||||
}
|
||||
else {
|
||||
return myExcludedIndex.isUnderIgnored(vf);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private boolean isInDirectoryBasedRoot(@Nullable VirtualFile file) {
|
||||
|
||||
Reference in New Issue
Block a user