diff --git a/modules/core/src/main/scala/playground/QueryCompilerVisitor.scala b/modules/core/src/main/scala/playground/QueryCompilerVisitor.scala index b887bcc9..f3e0b9d2 100644 --- a/modules/core/src/main/scala/playground/QueryCompilerVisitor.scala +++ b/modules/core/src/main/scala/playground/QueryCompilerVisitor.scala @@ -264,7 +264,7 @@ object QueryCompilerVisitorInternal extends SchemaVisitor[QueryCompiler] { val remainingValidFields = validFields -- presentKeys.map(_.value.text).toSet val extraFieldErrors: QueryCompiler.Result[Unit] = presentKeys - .filterNot(field => validFields.contains_(field.value.text)) + .filterNot(field => validFields.keySet.contains_(field.value.text)) .map { unexpectedKey => CompilationError.error( UnexpectedField(remainingValidFields.keys.toList), diff --git a/modules/lsp/src/main/scala/playground/lsp/ServerBuilder.scala b/modules/lsp/src/main/scala/playground/lsp/ServerBuilder.scala index 54ac01f0..fa6a8513 100644 --- a/modules/lsp/src/main/scala/playground/lsp/ServerBuilder.scala +++ b/modules/lsp/src/main/scala/playground/lsp/ServerBuilder.scala @@ -21,8 +21,6 @@ import playground.std.StdlibRuntime import smithy4s.aws.AwsEnvironment import smithy4s.aws.kernel.AwsRegion -import scala.concurrent.duration._ - trait ServerBuilder[F[_]] { def build(