IDEA-310278: revert editor state when template is already finished

GitOrigin-RevId: 2d3935b949fa49a283c7ae4fa732417089a0eab7
This commit is contained in:
Alexandr Suhinin
2023-02-15 19:21:08 +00:00
committed by intellij-monorepo-bot
parent 92ac1b6044
commit 927bf3df9f
2 changed files with 2 additions and 1 deletions
@@ -299,7 +299,7 @@ public final class InplaceIntroduceParameterPopup extends AbstractJavaInplaceInt
@Override
protected void performCleanup() {
myEditorState.revert();
ApplicationManager.getApplication().invokeLater(() -> myEditorState.revert());
}
@Override
@@ -33,6 +33,7 @@ public abstract class AbstractInplaceIntroduceTest extends LightPlatformCodeInsi
TemplateState state = TemplateManagerImpl.getTemplateState(getEditor());
assert state != null;
state.gotoEnd(true);
UIUtil.dispatchAllInvocationEvents();
checkResultByFile(getBasePath() + name + "_after" + getExtension());
}
finally {