diff --git a/src/text/language/lsp_client.nim b/src/text/language/lsp_client.nim index 73369e40..0040a28b 100644 --- a/src/text/language/lsp_client.nim +++ b/src/text/language/lsp_client.nim @@ -120,7 +120,7 @@ proc parseResponse(client: LSPClient): Future[JsonNode] {.async.} = if client.connection.isNil: log(lvlError, "[parseResponse] Connection is nil") - return JsonNode(nil) + return newJNull() var success = true var lines = @[line]