override fun actionPerformed()

in src/main/kotlin/com/pestphp/pest/runner/PestPressToContinueAction.kt [35:47]


    override fun actionPerformed(e: AnActionEvent) {
        val descriptor = e.getData(LangDataKeys.RUN_CONTENT_DESCRIPTOR) ?: return
        val processHandler = descriptor.processHandler ?: return
        val processInput = processHandler.processInput ?: return
        processInput.let { stream ->
            try {
                stream.write("\n".toByteArray(StandardCharsets.UTF_8))
                stream.flush()
            } catch (io: IOException) {
                logger.warn("Failed to write to process stdin for Pest Press to continue", io)
            }
        }
    }