mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assertion for reentrant commitDocument
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user