Debugger: do not report errors from context file

#KT-11455 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-03-17 12:36:04 +03:00
parent 6752d0f180
commit 6b4ea1ff19
@@ -461,7 +461,9 @@ class KotlinEvaluator(val codeFragment: KtCodeFragment, val sourcePosition: Sour
val bindingContext = analysisResult.bindingContext
bindingContext.diagnostics.firstOrNull { it.severity == Severity.ERROR }?.let {
exception(DefaultErrorMessages.render(it))
if (it.psiElement.containingFile == this) {
exception(DefaultErrorMessages.render(it))
}
}
if (analyzeInlineFunctions) {