@@ -8,17 +8,20 @@ import org.eclipse.lsp4j.debug.StackTraceResponse
8
8
import org.eclipse.lsp4j.debug.Variable
9
9
import org.eclipse.lsp4j.debug.services.IDebugProtocolServer
10
10
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() {
15
18
16
19
val variablesCache: MutableMap <Pair <Int , String >, Variable > = mutableMapOf ()
17
20
override fun getExecutionStacks (): Array <XExecutionStack > {
18
- return arrayOf(PowerShellExecutionStack (stack, server, coroutineScope , xDebugSession))
21
+ return arrayOf(PowerShellExecutionStack (stack, server, scope , xDebugSession))
19
22
}
20
23
21
24
override fun getActiveExecutionStack (): XExecutionStack {
22
- return PowerShellExecutionStack (stack, server, coroutineScope , xDebugSession)
25
+ return PowerShellExecutionStack (stack, server, scope , xDebugSession)
23
26
}
24
27
}
0 commit comments