mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PsiChangeHandler: explain when transaction can be null
This commit is contained in:
@@ -208,6 +208,7 @@ class PsiChangeHandler extends PsiTreeChangeAdapter implements Disposable {
|
||||
Document document = pdm.getCachedDocument(file);
|
||||
if (document != null) {
|
||||
if (pdm.getSynchronizer().getTransaction(document) == null) {
|
||||
// content reload, language level change or some other big change
|
||||
myFileStatusMap.markAllFilesDirty(child);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user