a bit more diagnostics for EA-68284 - assert: PsiDocumentManagerBase.finishCommitInWriteAction

This commit is contained in:
peter
2015-05-21 17:27:59 +02:00
parent 04dac377df
commit 677c80ea5e
@@ -296,8 +296,7 @@ public abstract class PsiDocumentManagerBase extends PsiDocumentManager implemen
if (ok[0]) {
// otherwise changes maybe not synced to the document yet, and injectors will crash
if (!mySynchronizer.isDocumentAffectedByTransactions(document)) {
final InjectedLanguageManager injectedLanguageManager = InjectedLanguageManager.getInstance(myProject);
if (injectedLanguageManager != null) injectedLanguageManager.startRunInjectors(document, synchronously);
InjectedLanguageManager.getInstance(myProject).startRunInjectors(document, synchronously);
}
// run after commit actions outside write action
runAfterCommitActions(document);
@@ -321,7 +320,7 @@ public abstract class PsiDocumentManagerBase extends PsiDocumentManager implemen
for (Processor<Document> finishRunnable : finishProcessors) {
success = finishRunnable.process(document);
if (synchronously) {
assert success;
assert success : finishRunnable + " in " + finishProcessors;
}
if (!success) {
break;