Ignore more methods from stdlib in argument name hints (KT-18350)
#KT-18350 Fixed
This commit is contained in:
+5
-1
@@ -140,7 +140,11 @@ class KotlinInlayParameterHintsProvider : InlayParameterHintsProvider {
|
||||
override fun getSupportedOptions(): List<Option> = HintType.values().map { it.option }
|
||||
|
||||
override fun getDefaultBlackList(): Set<String> =
|
||||
setOf("*listOf", "*setOf", "*arrayOf", "*ListOf", "*SetOf", "*ArrayOf", "*assert*(*)", "*mapOf", "*MapOf")
|
||||
setOf(
|
||||
"*listOf", "*setOf", "*arrayOf", "*ListOf", "*SetOf", "*ArrayOf", "*assert*(*)", "*mapOf", "*MapOf",
|
||||
"kotlin.require*(*)", "kotlin.check*(*)", "*contains*(value)", "*containsKey(key)", "kotlin.lazyOf(value)",
|
||||
"*SequenceBuilder.resume(value)", "*SequenceBuilder.yield(value)"
|
||||
)
|
||||
|
||||
override fun getHintInfo(element: PsiElement): HintInfo? {
|
||||
val hintType = HintType.resolve(element) ?: return null
|
||||
|
||||
Reference in New Issue
Block a user