Skip to content

Commit cde25fa

Browse files
committed
PowerShellSuspendContext: fix compatibility with IJ 252
It has its own member named coroutineScope in the base type.
1 parent 489ef0e commit cde25fa

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/main/kotlin/com/intellij/plugin/powershell/ide/debugger/PowerShellSuspendContext.kt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ import org.eclipse.lsp4j.debug.StackTraceResponse
88
import org.eclipse.lsp4j.debug.Variable
99
import org.eclipse.lsp4j.debug.services.IDebugProtocolServer
1010

11-
class PowerShellSuspendContext(val stack: StackTraceResponse, val server: IDebugProtocolServer,
12-
val coroutineScope: CoroutineScope,
13-
val threadId: Int = 0, val xDebugSession: XDebugSession
14-
): XSuspendContext(){
11+
class PowerShellSuspendContext(
12+
val stack: StackTraceResponse,
13+
val server: IDebugProtocolServer,
14+
private val scope: CoroutineScope,
15+
val threadId: Int = 0,
16+
val xDebugSession: XDebugSession
17+
): XSuspendContext() {
1518

1619
val variablesCache: MutableMap<Pair<Int, String>, Variable> = mutableMapOf()
1720
override fun getExecutionStacks(): Array<XExecutionStack> {
18-
return arrayOf(PowerShellExecutionStack(stack, server, coroutineScope, xDebugSession))
21+
return arrayOf(PowerShellExecutionStack(stack, server, scope, xDebugSession))
1922
}
2023

2124
override fun getActiveExecutionStack(): XExecutionStack {
22-
return PowerShellExecutionStack(stack, server, coroutineScope, xDebugSession)
25+
return PowerShellExecutionStack(stack, server, scope, xDebugSession)
2326
}
2427
}

0 commit comments

Comments
 (0)