mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
RUBY-32242 IJPL-159541 replace "..." with the proper ellipsis character
GitOrigin-RevId: 803814cb3a7379fb399abf8b44505f2a195974f3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0b12843b67
commit
595b4b6007
+2
-2
@@ -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++
|
||||
|
||||
+1
-1
@@ -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")
|
||||
|
||||
+2
-2
@@ -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<Any?>(InlayTags.TEXT_TAG, "a".repeat(30) + "...", mutableListOf())
|
||||
val firstNode = DebugNode<Any?>(InlayTags.TEXT_TAG, "a".repeat(30) + "…", mutableListOf())
|
||||
val root = DebugNode(InlayTags.LIST_TAG, null, mutableListOf(firstNode))
|
||||
TestCase.assertEquals(root, debugTree)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
@@ -3,5 +3,5 @@ sealed class Aaaaaaaaaaaaaa {
|
||||
class Bbbbbbbbbbbbbbbccc: Aaaaaaaaaaaaaa()
|
||||
}
|
||||
fun main(args: Array<String>) {
|
||||
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())
|
||||
}
|
||||
Reference in New Issue
Block a user