From 78d927c3c3a4491a8d894b4665625a6686d116ad Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Wed, 11 Feb 2015 23:55:55 +0300 Subject: [PATCH] Added TODO --- .../kotlin/idea/codeInsight/shorten/shortenWaitingSet.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/codeInsight/shorten/shortenWaitingSet.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/codeInsight/shorten/shortenWaitingSet.kt index 221e6a103dd..f15dadd581c 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/codeInsight/shorten/shortenWaitingSet.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/codeInsight/shorten/shortenWaitingSet.kt @@ -64,6 +64,7 @@ public fun performDelayedShortening(project: Project) { val elements = requests.map { it.pointer.getElement() } val options = requests.map { it.options } val elementToOptions = (elements zip options).toMap() + //TODO: this is not correct because it should not shorten deep into the elements! ShortenReferences({ elementToOptions[it] ?: ShortenReferences.Options.DEFAULT }).process(elements.filterNotNull()) } }