diff --git a/metals/src/main/scala/scala/meta/internal/metals/InlayHintsOptions.scala b/metals/src/main/scala/scala/meta/internal/metals/InlayHintsOptions.scala index 333b15fd735..92d9db621c1 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/InlayHintsOptions.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/InlayHintsOptions.scala @@ -34,13 +34,14 @@ object InlayHintsOption { case object ImplicitArguments extends InlayHintsOption case object TypeParameters extends InlayHintsOption case object HintsInPatternMatch extends InlayHintsOption - def unapply(value: String): Option[InlayHintsOption] = value match { - case "inferredTypes" => Some(InferredType) - case "implicitConversions" => Some(ImplicitConversions) - case "implicitArguments" => Some(ImplicitArguments) - case "typeParameters" => Some(TypeParameters) - case "hintsInPatternMatch" => Some(HintsInPatternMatch) - case _ => None - } + def unapply(value: String): Option[InlayHintsOption] = + StringCase.kebabToCamel(value) match { + case "inferredTypes" => Some(InferredType) + case "implicitConversions" => Some(ImplicitConversions) + case "implicitArguments" => Some(ImplicitArguments) + case "typeParameters" => Some(TypeParameters) + case "hintsInPatternMatch" => Some(HintsInPatternMatch) + case _ => None + } } diff --git a/metals/src/main/scala/scala/meta/internal/metals/UserConfigurationSync.scala b/metals/src/main/scala/scala/meta/internal/metals/UserConfigurationSync.scala index a14d18ab583..1aea3d629e2 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/UserConfigurationSync.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/UserConfigurationSync.scala @@ -91,6 +91,8 @@ class UserConfigurationSync( case Left(errors) => errors.foreach { error => scribe.error(s"config error: $error") } None - case Right(newUserConfig) => Some(newUserConfig) + case Right(newUserConfig) => + scribe.debug("New user configuration: " + newUserConfig) + Some(newUserConfig) } }