From fdfaa523707989410ac0128854fdcde984a0f58c Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Mon, 23 Dec 2024 17:46:11 +0100 Subject: [PATCH] chore: Adjust after changes --- .../scala/meta/internal/metals/ScaladocIndexer.scala | 3 ++- .../src/test/scala/tests/pc/SignatureHelpSuite.scala | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mtags/src/main/scala/scala/meta/internal/metals/ScaladocIndexer.scala b/mtags/src/main/scala/scala/meta/internal/metals/ScaladocIndexer.scala index 4b55db83f37..c30e9d60368 100644 --- a/mtags/src/main/scala/scala/meta/internal/metals/ScaladocIndexer.scala +++ b/mtags/src/main/scala/scala/meta/internal/metals/ScaladocIndexer.scala @@ -70,7 +70,8 @@ class ScaladocIndexer( } def mparam(member: Member): SymbolDocumentation = { val default = member match { - case Term.Param(_, _, _, Some(term)) => term.syntax + case Term.Param(_, _, _, Some(term)) => + term.syntax case _ => "" } diff --git a/tests/cross/src/test/scala/tests/pc/SignatureHelpSuite.scala b/tests/cross/src/test/scala/tests/pc/SignatureHelpSuite.scala index f264e728305..a50ff39d344 100644 --- a/tests/cross/src/test/scala/tests/pc/SignatureHelpSuite.scala +++ b/tests/cross/src/test/scala/tests/pc/SignatureHelpSuite.scala @@ -583,8 +583,8 @@ class SignatureHelpSuite extends BaseSignatureHelpSuite { | User(age = 1, @@) |} """.stripMargin, - """|apply(, ): User - | ^^^^^^^^^^^^^^^^^^^^ + """|apply(, ): User + | ^^^^^^^^^^^^^^^^^^^^^^^ |""".stripMargin, compat = Map( "3" -> @@ -602,8 +602,8 @@ class SignatureHelpSuite extends BaseSignatureHelpSuite { | User(name = "", @@) |} """.stripMargin, - """|apply(name: String = ..., age: Int = ...): User - | ^^^^^^^^^^^^^^ + """|apply(name: String = "John", age: Int = 42): User + | ^^^^^^^^^^^^^ |""".stripMargin, compat = Map( "3" ->