diff --git a/tests/mtest/src/main/scala/tests/TestInlayHints.scala b/tests/mtest/src/main/scala/tests/TestInlayHints.scala index 5e706f3bd06..217d7a1cd67 100644 --- a/tests/mtest/src/main/scala/tests/TestInlayHints.scala +++ b/tests/mtest/src/main/scala/tests/TestInlayHints.scala @@ -40,12 +40,13 @@ object TestInlayHints { case Right(markdown) => markdown.getValue() } ) - val data = - InlayHints.fromData(inlayHint.getData().asInstanceOf[JsonElement])._2 + val data = inlayHint.getData() buffer += "/*" if (data != null) { - labels.zip(data).foreach { case (label, data) => + val dataDecoded = + InlayHints.fromData(data.asInstanceOf[JsonElement])._2 + labels.zip(dataDecoded).foreach { case (label, data) => buffer += label buffer ++= readData(data) }