Skip to content

Commit 8f90e21

Browse files
committed
Merge branch '2024.2' into 2024.3
2 parents 555d6d2 + 69a1bdd commit 8f90e21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/main/kotlin/insight/generation/EventGenHelper.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import com.intellij.psi.PsiElement
3333
import com.intellij.psi.PsiFile
3434
import com.intellij.psi.codeStyle.CodeStyleManager
3535
import com.intellij.psi.util.parentOfType
36+
import org.jetbrains.kotlin.analysis.api.KaIdeApi
3637
import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferences
3738
import org.jetbrains.kotlin.idea.base.analysis.api.utils.shortenReferencesInRange
3839
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode
@@ -115,7 +116,7 @@ class KotlinEventGenHelper : EventGenHelper {
115116
when (KotlinPluginModeProvider.currentPluginMode) {
116117
KotlinPluginMode.K1 -> ShortenReferences.DEFAULT.process(insertedEntry)
117118
// TODO find a non-internal alternative to this...
118-
KotlinPluginMode.K2 -> shortenReferences(insertedEntry)
119+
KotlinPluginMode.K2 -> @OptIn(KaIdeApi::class) shortenReferences(insertedEntry)
119120
}
120121
}
121122

@@ -127,7 +128,7 @@ class KotlinEventGenHelper : EventGenHelper {
127128
when (KotlinPluginModeProvider.currentPluginMode) {
128129
KotlinPluginMode.K1 -> ShortenReferences.DEFAULT.process(file, marker.startOffset, marker.endOffset)
129130
// TODO find a non-internal alternative to this...
130-
KotlinPluginMode.K2 -> shortenReferencesInRange(file, marker.textRange)
131+
KotlinPluginMode.K2 -> @OptIn(KaIdeApi::class) shortenReferencesInRange(file, marker.textRange)
131132
}
132133
}
133134
}

0 commit comments

Comments
 (0)