Skip to content

Commit 64d797c

Browse files
committed
fix: use createKillableColoredProcessHandler again
1 parent 968d7ac commit 64d797c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/io/plugin/tsnode/lib/cmd/NodeJSCommandLine.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@ import com.intellij.execution.process.OSProcessHandler
66
import com.intellij.execution.process.ProcessTerminatedListener
77
import com.intellij.javascript.debugger.CommandLineDebugConfigurator
88
import com.intellij.javascript.nodejs.NodeCommandLineUtil
9+
import com.intellij.javascript.nodejs.NodeCommandLineUtil.shouldUseTerminalConsole
910
import com.intellij.openapi.project.Project
1011
import com.intellij.openapi.util.registry.Registry
1112
import com.intellij.openapi.util.text.StringUtil
13+
import com.intellij.terminal.TerminalExecutionConsole
1214
import com.intellij.util.ThrowableConsumer
1315
import io.plugin.tsnode.execution.TsRunConfiguration
1416
import io.plugin.tsnode.execution.TsRunSettings
1517
import io.plugin.tsnode.execution.TsUtil
18+
import io.plugin.tsnode.lib.TsLog
1619
import java.nio.charset.Charset
1720

1821
object MyNodeCommandLineUtil
1922
{
23+
val LOG = TsLog(javaClass)
2024

2125
fun createCommandLine(runConfig: TsRunConfiguration?, project: Project?): GeneralCommandLine
2226
{
@@ -125,7 +129,7 @@ object MyNodeCommandLineUtil
125129

126130
fun createProcessHandler(commandLine: GeneralCommandLine, project: Project?, debugConfigurator: CommandLineDebugConfigurator?): OSProcessHandler
127131
{
128-
val processHandler = if (false && NodeCommandLineUtil.isTerminalCommandLine(commandLine))
132+
val processHandler = if (NodeCommandLineUtil.isTerminalCommandLine(commandLine))
129133
{
130134
val p = NodeCommandLineUtil.createKillableColoredProcessHandler(commandLine, true)
131135

0 commit comments

Comments
 (0)