fixed EA-65265 - assert: ProjectRootManagerImpl.fireBeforeRootsChanged

This commit is contained in:
Ekaterina Tuzova
2015-10-01 13:02:06 +03:00
parent 37964d4dae
commit dc21ab78a8
@@ -223,7 +223,15 @@ public class PythonLanguageLevelPusher implements FilePropertyPusher<LanguageLev
}
}
if (needReparseOpenFiles) {
FileContentUtil.reparseFiles(project, Collections.<VirtualFile>emptyList(), true);
ApplicationManager.getApplication().invokeLater(new Runnable() {
@Override
public void run() {
if (project.isDisposed()) {
return;
}
FileContentUtil.reparseFiles(project, Collections.<VirtualFile>emptyList(), true);
}
});
}
}