diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hints/declarative/impl/PresentationTreeBuilderImpl.kt b/platform/lang-impl/src/com/intellij/codeInsight/hints/declarative/impl/PresentationTreeBuilderImpl.kt index 7d9de0deefde..94e7bceebec3 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hints/declarative/impl/PresentationTreeBuilderImpl.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/hints/declarative/impl/PresentationTreeBuilderImpl.kt @@ -92,7 +92,7 @@ class PresentationTreeBuilderImpl private constructor( override fun text(text: String, actionData: InlayActionData?) { require(text.isNotEmpty()) { "Text entry may not be empty. Please, fix the provider implementation." } val segmentText = if (MAX_SEGMENT_TEXT_LENGTH < text.length) { - text.substring(0, MAX_SEGMENT_TEXT_LENGTH) + "..." + text.substring(0, MAX_SEGMENT_TEXT_LENGTH) + "…" } else { text } @@ -138,7 +138,7 @@ private class InlayTreeBuildingContext { } if (nodeCount == PresentationTreeBuilderImpl.MAX_NODE_COUNT - 1) { limitReached = true - tree.add(parent, InlayTags.TEXT_TAG, "...") + tree.add(parent, InlayTags.TEXT_TAG, "…") return PresentationTreeBuilderImpl.DOESNT_FIT_INDEX } nodeCount++ diff --git a/platform/lang-impl/testSources/com/intellij/codeInsight/hints/declarative/impl/PresentationEntryBuildingTest.kt b/platform/lang-impl/testSources/com/intellij/codeInsight/hints/declarative/impl/PresentationEntryBuildingTest.kt index 88775a30deab..40101e3072d5 100644 --- a/platform/lang-impl/testSources/com/intellij/codeInsight/hints/declarative/impl/PresentationEntryBuildingTest.kt +++ b/platform/lang-impl/testSources/com/intellij/codeInsight/hints/declarative/impl/PresentationEntryBuildingTest.kt @@ -107,7 +107,7 @@ class PresentationEntryBuildingTest : UsefulTestCase() { repeat(PresentationTreeBuilderImpl.MAX_NODE_COUNT - 2) { expected.add(txt("a")) } - expected.add(txt("...")) + expected.add(txt("…")) testBuildEntries(*expected.toTypedArray()) { repeat(200) { text("a") diff --git a/platform/lang-impl/testSources/com/intellij/codeInsight/hints/declarative/impl/PresentationTreeBuilderTest.kt b/platform/lang-impl/testSources/com/intellij/codeInsight/hints/declarative/impl/PresentationTreeBuilderTest.kt index 78a11f93b713..9cf82773d1ea 100644 --- a/platform/lang-impl/testSources/com/intellij/codeInsight/hints/declarative/impl/PresentationTreeBuilderTest.kt +++ b/platform/lang-impl/testSources/com/intellij/codeInsight/hints/declarative/impl/PresentationTreeBuilderTest.kt @@ -4,10 +4,10 @@ package com.intellij.codeInsight.hints.declarative.impl import com.intellij.codeInsight.hints.declarative.CollapseState import com.intellij.codeInsight.hints.declarative.InlayActionData import com.intellij.codeInsight.hints.declarative.StringInlayActionPayload -import com.intellij.codeInsight.hints.declarative.TinyTreeDebugNode as DebugNode import com.intellij.testFramework.UsefulTestCase import junit.framework.TestCase import org.junit.Assert +import com.intellij.codeInsight.hints.declarative.TinyTreeDebugNode as DebugNode class PresentationTreeBuilderTest : UsefulTestCase() { fun testText() { @@ -92,7 +92,7 @@ class PresentationTreeBuilderTest : UsefulTestCase() { } val tree = treeBuilder.complete() val debugTree = DebugNode.buildDebugTree(tree) - val firstNode = DebugNode(InlayTags.TEXT_TAG, "a".repeat(30) + "...", mutableListOf()) + val firstNode = DebugNode(InlayTags.TEXT_TAG, "a".repeat(30) + "…", mutableListOf()) val root = DebugNode(InlayTags.LIST_TAG, null, mutableListOf(firstNode)) TestCase.assertEquals(root, debugTree) } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/hints/arguments/javaParameters.k2.kt b/plugins/kotlin/idea/tests/testData/codeInsight/hints/arguments/javaParameters.k2.kt index 3ba6369e5f37..37d0a696461f 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/hints/arguments/javaParameters.k2.kt +++ b/plugins/kotlin/idea/tests/testData/codeInsight/hints/arguments/javaParameters.k2.kt @@ -14,7 +14,7 @@ fun javaParameters() { some.doNotInvokeMe(/* index= */ 0, /* ...args= */ "a", "b") some.doNotInvokeMe(/* index = */ 0, /* ...names = */ /*<# …|[javaParameters.dependency.java:125]args|: #>*/"a", "b") - some.singleParamDslWithSameParamName(/*<# [javaParameters.dependency.java:200]singleParamDslWithSameParamNam...|: #>*/"no hint param name equals method name") + some.singleParamDslWithSameParamName(/*<# [javaParameters.dependency.java:200]singleParamDslWithSameParamNam…|: #>*/"no hint param name equals method name") some.sameFirstParamNameAndVararg(/*<# [javaParameters.dependency.java:294]sameFirstParamNameAndVararg|: #>*/"no hint param name equals method name") some.sameFirstParamNameAndVararg(/*<# [javaParameters.dependency.java:294]sameFirstParamNameAndVararg|: #>*/"no hint param name equals method name", /*<# …|[javaParameters.dependency.java:330]variables|: #>*/>123) } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/hints/types/LongLongClassNames.kt b/plugins/kotlin/idea/tests/testData/codeInsight/hints/types/LongLongClassNames.kt index bce0e498e49e..7ff3a8b0eb55 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/hints/types/LongLongClassNames.kt +++ b/plugins/kotlin/idea/tests/testData/codeInsight/hints/types/LongLongClassNames.kt @@ -3,5 +3,5 @@ sealed class Aaaaaaaaaaaaaa { class Bbbbbbbbbbbbbbbccc: Aaaaaaaaaaaaaa() } fun main(args: Array) { - val list/*<# : |[kotlin.collections.List:kotlin.fqn.class]List|<|[Aaaaaaaaaaaaaa.Bbbbbbbbbbbbbbbccc:kotlin.fqn.class]Aaaaaaaaaaaaaa.Bbbbbbbbbbbbbbb...|> #>*/ = listOf(Aaaaaaaaaaaaaa.Bbbbbbbbbbbbbbbccc()) + val list/*<# : |[kotlin.collections.List:kotlin.fqn.class]List|<|[Aaaaaaaaaaaaaa.Bbbbbbbbbbbbbbbccc:kotlin.fqn.class]Aaaaaaaaaaaaaa.Bbbbbbbbbbbbbbb…|> #>*/ = listOf(Aaaaaaaaaaaaaa.Bbbbbbbbbbbbbbbccc()) } \ No newline at end of file