From efcffb291a3013becbc609ef23fab8b6900d4a88 Mon Sep 17 00:00:00 2001 From: "Roman.Ivanov" Date: Fri, 14 Jun 2019 11:24:21 +0700 Subject: [PATCH] Inlay hints: docs GitOrigin-RevId: 4eefd96cf6523d3c253f7bef12b00d6b661a5976 --- .../src/com/intellij/codeInsight/hints/InlayHintsSink.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-api/src/com/intellij/codeInsight/hints/InlayHintsSink.kt b/platform/lang-api/src/com/intellij/codeInsight/hints/InlayHintsSink.kt index af2b4ad705da..2509dea5b02c 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/hints/InlayHintsSink.kt +++ b/platform/lang-api/src/com/intellij/codeInsight/hints/InlayHintsSink.kt @@ -6,14 +6,14 @@ import com.intellij.codeInsight.hints.presentation.InlayPresentation interface InlayHintsSink { /** * Adds inline element to underlying editor. - * Note, that only one presentation with the given key may be at the same offset. + * Note, that single provider may add only one presentation to the given offset (no matter inline or block). This requirement may be relaxed in future. * @see [com.intellij.openapi.editor.InlayModel.addInlineElement] */ fun addInlineElement(offset: Int, relatesToPrecedingText: Boolean, presentation: InlayPresentation) /** * Adds block element to underlying editor. - * Note, that only one presentation with the given key may be at the same offset. + * Note, that single provider may add only one presentation to the given offset (no matter inline or block). This requirement may be relaxed in future. * @see [com.intellij.openapi.editor.InlayModel.addBlockElement] */ fun addBlockElement(offset: Int, relatesToPrecedingText: Boolean, showAbove: Boolean, priority: Int, presentation: InlayPresentation)