diff --git a/platform/whatsNew/src/com/intellij/platform/whatsNew/WhatsNewAction.kt b/platform/whatsNew/src/com/intellij/platform/whatsNew/WhatsNewAction.kt index c45a9295e171..f7b4b882c74f 100644 --- a/platform/whatsNew/src/com/intellij/platform/whatsNew/WhatsNewAction.kt +++ b/platform/whatsNew/src/com/intellij/platform/whatsNew/WhatsNewAction.kt @@ -10,6 +10,7 @@ import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.DataContext import com.intellij.openapi.application.ApplicationNamesInfo import com.intellij.openapi.application.EDT +import com.intellij.openapi.application.writeIntentReadAction import com.intellij.openapi.components.Service import com.intellij.openapi.components.service import com.intellij.openapi.components.serviceAsync @@ -76,7 +77,8 @@ internal class WhatsNewAction : AnAction(), com.intellij.openapi.project.DumbAwa val title = IdeBundle.message("update.whats.new", ApplicationNamesInfo.getInstance().fullProductName) withContext(Dispatchers.EDT) { LOG.info("Opening What's New in editor.") - openEditor(project, title, whatsNewContent.getRequest(dataContext))?.let { + val editor = writeIntentReadAction { openEditor(project, title, whatsNewContent.getRequest(dataContext)) } + editor?.let { project.serviceAsync().addTopComponent(it, ReactionsPanel.createPanel(PLACE, reactionChecker)) WhatsNewCounterUsageCollector.openedPerformed(project, byClient)