From a3aa2ca81e8ae1e89b42e3451f052755500396dc Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 7 Dec 2016 19:38:37 +0300 Subject: [PATCH] Use BodyResolveMode.PARTIAL_WITH_DIAGNOSTICS for checking whether an auto-import is still required --- idea/src/org/jetbrains/kotlin/idea/quickfix/ImportFix.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/quickfix/ImportFix.kt b/idea/src/org/jetbrains/kotlin/idea/quickfix/ImportFix.kt index 52ae8743e59..99fb83fe805 100644 --- a/idea/src/org/jetbrains/kotlin/idea/quickfix/ImportFix.kt +++ b/idea/src/org/jetbrains/kotlin/idea/quickfix/ImportFix.kt @@ -158,7 +158,7 @@ internal abstract class ImportFixBase protected constructor( val file = element.getContainingKtFile() - val bindingContext = element.analyze(BodyResolveMode.PARTIAL) + val bindingContext = element.analyze(BodyResolveMode.PARTIAL_WITH_DIAGNOSTICS) if (!checkErrorStillPresent(bindingContext)) return emptyList() val searchScope = getResolveScope(file)