diff --git a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/commandHelper.kt b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/commandHelper.kt index 9a0f89e78af..5c044d3c78f 100644 --- a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/commandHelper.kt +++ b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/commandHelper.kt @@ -5,4 +5,5 @@ package org.jetbrains.kotlin.idea.scratch.output +// BUNCH: 183 inline fun executeCommand(crossinline command: () -> Unit) = com.intellij.openapi.command.executeCommand(command = command) diff --git a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/commandHelper.kt.183 b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/commandHelper.kt.183 index c36caaedf37..40b8281aadf 100644 --- a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/commandHelper.kt.183 +++ b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/commandHelper.kt.183 @@ -7,6 +7,7 @@ package org.jetbrains.kotlin.idea.scratch.output import com.intellij.openapi.command.CommandProcessor +// BUNCH: 183 fun executeCommand(command: () -> Unit) { CommandProcessor.getInstance().executeCommand(null, command, null, null) } diff --git a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/inlayHelper.kt b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/inlayHelper.kt index 16db70298ef..ee905db71c3 100644 --- a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/inlayHelper.kt +++ b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/inlayHelper.kt @@ -9,9 +9,11 @@ package org.jetbrains.kotlin.idea.scratch.output import com.intellij.openapi.editor.InlayModel +// BUNCH: 183 fun InlayModel.addInlay(offset: Int, renderer: InlayScratchFileRenderer) { addAfterLineEndElement(offset, false, renderer) } +// BUNCH: 183 fun InlayModel.getInlays(start: Int, end: Int) = getAfterLineEndElementsInRange(start, end).filter { it.renderer is InlayScratchFileRenderer } \ No newline at end of file diff --git a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/inlayHelper.kt.183 b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/inlayHelper.kt.183 index 9ab71128e1a..18907f5b182 100644 --- a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/inlayHelper.kt.183 +++ b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/output/inlayHelper.kt.183 @@ -9,9 +9,11 @@ package org.jetbrains.kotlin.idea.scratch.output import com.intellij.openapi.editor.InlayModel +// BUNCH: 183 fun InlayModel.addInlay(offset: Int, renderer: InlayScratchFileRenderer) { addInlineElement(offset, true, renderer) } +// BUNCH: 183 fun InlayModel.getInlays(start: Int, end: Int) = getInlineElementsInRange(start, end).filter { it.renderer is InlayScratchFileRenderer } \ No newline at end of file