Skip to content

Instantly share code, notes, and snippets.

@dkandalov
Created October 28, 2024 22:33
Show Gist options
  • Save dkandalov/0c3a0362d205abd369d363ac280f9d9c to your computer and use it in GitHub Desktop.
Save dkandalov/0c3a0362d205abd369d363ac280f9d9c to your computer and use it in GitHub Desktop.
import com.intellij.diagnostic.IdeMessagePanel
import com.intellij.openapi.wm.WindowManager
import liveplugin.registerAction
registerAction("Show IDE Errors", "ctrl shift E") { event ->
val messagePanel = WindowManager.getInstance().allProjectFrames
.find { it.project == event.project }
?.statusBar?.getWidget(IdeMessagePanel.FATAL_ERROR) as IdeMessagePanel
messagePanel.openErrorsDialog(null)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment