KT-32368 Rework Inline hints settings // special case for lambda hints

Lambda hints are placed at the end of a line in such a way that user
can't move the caret behind it. Unfortunately, hint provision
infrastructure doesn't take this detail into account.
As a workaround, KotlinLambdasHintsProvider now returns an empty result
(sink) to the outer infrastructure and accesses editor's inlay model
itself.
This commit is contained in:
Andrei Klunnyi
2020-07-07 19:18:14 +02:00
parent d1722e3975
commit 49d4f55c87
4 changed files with 52 additions and 124 deletions
@@ -882,10 +882,6 @@ fun main(args: Array<String>) {
model("codeInsight/codeVision")
}
testClass<AbstractKotlinLambdasHintsProvider> {
model("codeInsight/hints/lambda")
}
testClass<AbstractKotlinSuspendingCallHintsProviderTest> {
model("codeInsight/hints/suspending")
}