Debugger: Fix isDumb contract in evaluator (KT-31510)
This commit is contained in:
+2
@@ -120,9 +120,11 @@ class KotlinEvaluator(val codeFragment: KtCodeFragment, val sourcePosition: Sour
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun evaluateWithStatus(context: EvaluationContextImpl, status: EvaluationStatus): Any? {
|
private fun evaluateWithStatus(context: EvaluationContextImpl, status: EvaluationStatus): Any? {
|
||||||
|
runReadAction {
|
||||||
if (DumbService.getInstance(codeFragment.project).isDumb) {
|
if (DumbService.getInstance(codeFragment.project).isDumb) {
|
||||||
evaluationException("Code fragment evaluation is not available in the dumb mode")
|
evaluationException("Code fragment evaluation is not available in the dumb mode")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val frameProxy = context.frameProxy ?: run {
|
val frameProxy = context.frameProxy ?: run {
|
||||||
status.error(EvaluationError.NoFrameProxy)
|
status.error(EvaluationError.NoFrameProxy)
|
||||||
|
|||||||
Reference in New Issue
Block a user