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