mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid parsing during disposal of smart pointers
This commit is contained in:
@@ -76,6 +76,10 @@ class FileElementInfo implements SmartPointerElementInfo {
|
||||
if (other instanceof FileElementInfo) {
|
||||
return Comparing.equal(myVirtualFile, ((FileElementInfo)other).myVirtualFile);
|
||||
}
|
||||
if (other instanceof SelfElementInfo && ((SelfElementInfo)other).getSyncStartOffset() != 0) {
|
||||
// SelfElementInfo need psi (parsing) for element restoration and apriori could not reference psi file
|
||||
return false;
|
||||
}
|
||||
return Comparing.equal(restoreElement(), other.restoreElement());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user