@@ -6,7 +6,7 @@ import com.intellij.execution.ExecutionResult
6
6
import com.intellij.execution.Executor
7
7
import com.intellij.execution.configurations.PtyCommandLine
8
8
import com.intellij.execution.configurations.RunProfileState
9
- import com.intellij.execution.process.KillableColoredProcessHandler
9
+ import com.intellij.execution.process.KillableProcessHandler
10
10
import com.intellij.execution.process.ProcessHandler
11
11
import com.intellij.execution.runners.ExecutionEnvironment
12
12
import com.intellij.execution.runners.ProgramRunner
@@ -30,7 +30,7 @@ class PowerShellScriptCommandLineState(
30
30
private val runConfiguration : PowerShellRunConfiguration ,
31
31
private val environment : ExecutionEnvironment ) : RunProfileState {
32
32
33
- lateinit var workingDirectory: Path
33
+ private lateinit var workingDirectory: Path
34
34
suspend fun prepareExecution () {
35
35
val project = runConfiguration.project
36
36
val file = withContext(Dispatchers .IO ) { LocalFileSystem .getInstance().findFileByIoFile(File (runConfiguration.scriptPath)) }
@@ -60,7 +60,7 @@ class PowerShellScriptCommandLineState(
60
60
logger.debug(" Command line: $command " )
61
61
logger.debug(" Environment: " + commandLine.environment.toString())
62
62
logger.debug(" Effective Environment: " + commandLine.effectiveEnvironment.toString())
63
- return KillableColoredProcessHandler (commandLine)
63
+ return KillableProcessHandler (commandLine)
64
64
} catch (e: PowerShellNotInstalled ) {
65
65
logger.warn(" Can not start PowerShell: ${e.message} " )
66
66
throw ExecutionException (e.message, e)
@@ -97,7 +97,7 @@ class PowerShellScriptCommandLineState(
97
97
return commandString
98
98
}
99
99
100
- override fun execute (executor : Executor ? , runner : ProgramRunner <* >): ExecutionResult ? {
100
+ override fun execute (executor : Executor ? , runner : ProgramRunner <* >): ExecutionResult {
101
101
val process = startProcess()
102
102
val console = TerminalExecutionConsole (environment.project, process)
103
103
return DefaultExecutionResult (console, process)
0 commit comments