From fc3b477dfe7214a076ab5ad64094ff1ed59e08fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owski?= Date: Mon, 25 Sep 2023 01:30:13 +0200 Subject: [PATCH] fix mege --- .../core/src/main/scala/playground/QueryCompilerVisitor.scala | 2 +- modules/lsp/src/main/scala/playground/lsp/ServerBuilder.scala | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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(