mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
pass value to computeSourcePosition
This commit is contained in:
-4
@@ -18,7 +18,6 @@
|
||||
package org.jetbrains.debugger
|
||||
|
||||
import com.intellij.xdebugger.evaluation.XDebuggerEvaluator
|
||||
import com.intellij.xdebugger.frame.XNavigatable
|
||||
import com.intellij.xdebugger.frame.XValueNode
|
||||
import org.jetbrains.concurrency.Promise
|
||||
import org.jetbrains.debugger.frame.CallFrameView
|
||||
@@ -41,9 +40,6 @@ open class BasicDebuggerViewSupport : MemberFilter, DebuggerViewSupport {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun computeSourcePosition(name: String, variable: Variable, context: VariableContext, navigatable: XNavigatable) {
|
||||
}
|
||||
|
||||
override fun getMemberFilter(context: VariableContext): Promise<MemberFilter> {
|
||||
return defaultMemberFilterPromise
|
||||
}
|
||||
|
||||
+2
-1
@@ -51,7 +51,8 @@ interface DebuggerViewSupport {
|
||||
*/
|
||||
fun canNavigateToSource(variable: Variable, context: VariableContext) = false
|
||||
|
||||
fun computeSourcePosition(name: String, variable: Variable, context: VariableContext, navigatable: XNavigatable)
|
||||
fun computeSourcePosition(name: String, value: Value?, variable: Variable, context: VariableContext, navigatable: XNavigatable) {
|
||||
}
|
||||
|
||||
fun computeInlineDebuggerData(name: String, variable: Variable, context: VariableContext, callback: XInlineDebuggerDataCallback) = ThreeState.UNSURE
|
||||
|
||||
|
||||
@@ -366,7 +366,7 @@ class VariableView(name: String, private val variable: Variable, private val con
|
||||
}
|
||||
}
|
||||
else {
|
||||
viewSupport.computeSourcePosition(name, variable, context, navigatable)
|
||||
viewSupport.computeSourcePosition(name, value!!, variable, context, navigatable)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ class ExecutionStackImpl extends XExecutionStack {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void computeStackFrames(final int firstFrameIndex, final XStackFrameContainer container) {
|
||||
public final void computeStackFrames(final int firstFrameIndex, final XStackFrameContainer container) {
|
||||
SuspendContext suspendContext = debugProcess.getVm().getSuspendContextManager().getContext();
|
||||
// WipSuspendContextManager set context to null on resume _before_ vm.getDebugListener().resumed() call() (in any case, XFramesView can queue event to EDT), so, IDE state could be outdated compare to VM (our) state
|
||||
if (suspendContext == null) {
|
||||
|
||||
Reference in New Issue
Block a user