assertion for reentrant commitDocument

This commit is contained in:
Alexey Kudravtsev
2011-09-08 13:12:25 +04:00
parent b4ef76046a
commit 2ca9b1fffd
@@ -379,6 +379,7 @@ public class PsiDocumentManagerImpl extends PsiDocumentManager implements Projec
}
private void doCommit(@NotNull final Document document, final PsiFile excludeFile) {
assert !myIsCommitInProgress : "Do not call commitDocument() from inside PSI change listener";
ApplicationManager.getApplication().runWriteAction(new Runnable() {
public void run() {
// otherwise there are many clients calling commitAllDocs() on PSI childrenChanged()