From 8f7cf38e6774d5fa9758aeedea6388483d7072c0 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Mon, 9 Feb 2015 19:56:40 +0300 Subject: [PATCH] Switched to use of new method for import insertion --- .../idea/completion/handlers/KotlinCallableInsertHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/completion/handlers/KotlinCallableInsertHandler.kt b/idea/src/org/jetbrains/kotlin/idea/completion/handlers/KotlinCallableInsertHandler.kt index da028ae9347..c86ef9779dc 100644 --- a/idea/src/org/jetbrains/kotlin/idea/completion/handlers/KotlinCallableInsertHandler.kt +++ b/idea/src/org/jetbrains/kotlin/idea/completion/handlers/KotlinCallableInsertHandler.kt @@ -77,7 +77,7 @@ public abstract class KotlinCallableInsertHandler : BaseDeclarationInsertHandler if (DescriptorUtils.isTopLevelDeclaration(descriptor)) { ApplicationManager.getApplication()?.runWriteAction { - ImportInsertHelper.getInstance(context.getProject()).addImportDirectiveIfNeeded(DescriptorUtils.getFqNameSafe(descriptor), file) + ImportInsertHelper.getInstance(context.getProject()).importDescriptor(file, descriptor) } } }