postfix completion: inplace introduce variable: ensure doc committed when handler is started inside writeAction

test: switch on inplace mode in tests
EA-86900 - RE: PostprocessReformattingAspect.beforeDocumentChanged
This commit is contained in:
Anna.Kozlova
2016-10-14 09:57:28 +02:00
parent 5881ca3033
commit 614deb2e24
7 changed files with 28 additions and 2 deletions
@@ -86,6 +86,11 @@ public class IntroduceVariablePostfixTemplate extends PostfixTemplateWithExpress
}
};
}
@Override
protected boolean isInplaceAvailableInTestMode() {
return true;
}
};
}
}
@@ -422,6 +422,7 @@ public class JavaVariableInplaceIntroducer extends AbstractJavaInplaceIntroducer
finally {
myDeleteSelf = true;
}
PsiDocumentManager.getInstance(myProject).doPostponedOperationsAndUnblockDocument(myEditor.getDocument());
initOccurrencesMarkers();
return variable;
}