From 4115b050225c13ef11903261f47dbd3f22cd83cc Mon Sep 17 00:00:00 2001 From: "Roman.Ivanov" Date: Wed, 5 Jun 2019 14:36:31 +0700 Subject: [PATCH] InlayHints: add example GitOrigin-RevId: 5f0f2a16a1334061cf3d157fee378b18bba9b7b1 --- .../codeInsight/hints/AnnotationInlayProvider.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/hints/AnnotationInlayProvider.kt b/java/java-impl/src/com/intellij/codeInsight/hints/AnnotationInlayProvider.kt index 708f0e96f103..6f9b9e1e6388 100644 --- a/java/java-impl/src/com/intellij/codeInsight/hints/AnnotationInlayProvider.kt +++ b/java/java-impl/src/com/intellij/codeInsight/hints/AnnotationInlayProvider.kt @@ -98,7 +98,7 @@ class AnnotationInlayProvider : InlayHintsProvider get() = ourKey override val previewText: String? - get() = "" // TODO + get() = """ + class Demo { + private static int pure(int x, int y) { + return x * y + 10; + } + } + """.trimIndent() override fun createConfigurable(settings: Settings): ImmediateConfigurable { return object : ImmediateConfigurable {