mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
a bit more diagnostics for EA-68284 - assert: PsiDocumentManagerBase.finishCommitInWriteAction
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user