diff --git a/rider/src/main/kotlin/com/jetbrains/rider/plugins/godot/run/configurations/GodotDebugProfileState.kt b/rider/src/main/kotlin/com/jetbrains/rider/plugins/godot/run/configurations/GodotDebugProfileState.kt index a25c7c5..d1f68dc 100644 --- a/rider/src/main/kotlin/com/jetbrains/rider/plugins/godot/run/configurations/GodotDebugProfileState.kt +++ b/rider/src/main/kotlin/com/jetbrains/rider/plugins/godot/run/configurations/GodotDebugProfileState.kt @@ -81,7 +81,7 @@ class GodotDebugProfileState(private val exeConfiguration: GodotDebugRunConfigur val commandLineString = runCommandLine.commandLineString val monoConnectResult = super.execute(executor, runner, workerProcessHandler) - workerProcessHandler.debuggerWorkerRealHandler.addProcessListener(object : ProcessAdapter() { + workerProcessHandler.addProcessListener(object : ProcessAdapter() { override fun startNotified(event: ProcessEvent) { val targetProcessHandler = if (exeConfiguration.parameters.useExternalConsole) ExternalConsoleMediator.createProcessHandler(runCommandLine) diff --git a/rider/src/main/kotlin/com/jetbrains/rider/plugins/godot/run/configurations/GodotDebugRunConfiguration.kt b/rider/src/main/kotlin/com/jetbrains/rider/plugins/godot/run/configurations/GodotDebugRunConfiguration.kt index e171a27..1307087 100644 --- a/rider/src/main/kotlin/com/jetbrains/rider/plugins/godot/run/configurations/GodotDebugRunConfiguration.kt +++ b/rider/src/main/kotlin/com/jetbrains/rider/plugins/godot/run/configurations/GodotDebugRunConfiguration.kt @@ -29,12 +29,12 @@ class GodotDebugRunConfiguration(name:String, project: Project, factory: Configu return newConfiguration } - override fun getStateAsync(executor: Executor, environment: ExecutionEnvironment): Promise { + override suspend fun getRunProfileStateAsync(executor: Executor, environment: ExecutionEnvironment): RunProfileState { val executorId = executor.id if (executorId == DefaultDebugExecutor.EXECUTOR_ID) - return resolvedPromise(GodotDebugProfileState(this, DotNetRemoteConfiguration(project, ConfigurationTypeUtil.findConfigurationType(MonoRemoteConfigType::class.java).factory, name), environment)) + return GodotDebugProfileState(this, DotNetRemoteConfiguration(project, ConfigurationTypeUtil.findConfigurationType(MonoRemoteConfigType::class.java).factory, name), environment) - return super.getStateAsync(executor, environment) + return super.getRunProfileStateAsync(executor, environment) } } \ No newline at end of file