Fixed EA-72699
#EA-72699 Fixed
This commit is contained in:
@@ -149,8 +149,10 @@ public class KotlinAddImportAction(
|
|||||||
project.executeWriteCommand(QuickFixBundle.message("add.import")) {
|
project.executeWriteCommand(QuickFixBundle.message("add.import")) {
|
||||||
if (!element.isValid()) return@executeWriteCommand
|
if (!element.isValid()) return@executeWriteCommand
|
||||||
|
|
||||||
val location = ProximityLocation(file, ModuleUtilCore.findModuleForPsiElement(file))
|
selectedVariant.declarationToImport?.let {
|
||||||
StatisticsManager.getInstance().incUseCount(PsiProximityComparator.STATISTICS_KEY, selectedVariant.declarationToImport, location)
|
val location = ProximityLocation(file, ModuleUtilCore.findModuleForPsiElement(file))
|
||||||
|
StatisticsManager.getInstance().incUseCount(PsiProximityComparator.STATISTICS_KEY, it, location)
|
||||||
|
}
|
||||||
|
|
||||||
val descriptor = selectedVariant.descriptorToImport
|
val descriptor = selectedVariant.descriptorToImport
|
||||||
// for class or package we use ShortenReferences because we not necessary insert an import but may want to insert partly qualified name
|
// for class or package we use ShortenReferences because we not necessary insert an import but may want to insert partly qualified name
|
||||||
|
|||||||
Reference in New Issue
Block a user