Skip to content

Commit

Permalink
Bump clojure-lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdallo committed Nov 6, 2023
1 parent 191c73d commit b1e2984
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .clj-kondo/http-kit/http-kit/config.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

{:hooks
{:analyze-call {org.httpkit.server/with-channel httpkit.with-channel/with-channel}}}
16 changes: 16 additions & 0 deletions .clj-kondo/http-kit/http-kit/httpkit/with_channel.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
(ns httpkit.with-channel
(:require [clj-kondo.hooks-api :as api]))

(defn with-channel [{node :node}]
(let [[request channel & body] (rest (:children node))]
(when-not (and request channel) (throw (ex-info "No request or channel provided" {})))
(when-not (api/token-node? channel) (throw (ex-info "Missing channel argument" {})))
(let [new-node
(api/list-node
(list*
(api/token-node 'let)
(api/vector-node [channel (api/vector-node [])])
request
body))]

{:node new-node})))
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Bump clojure-lsp to 2023.10.30-16.25.41-hotfix1

## 1.4.1

- Bump clojure-lsp to 2023.10.30-16.25.41
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
:sign-releases false}]]
:managed-dependencies [[com.fasterxml.jackson.core/jackson-core "2.15.2"]
[org.clojure/tools.cli "1.0.219"]]
:dependencies [[com.github.clojure-lsp/clojure-lsp-server "2023.10.30-16.25.41"]])
:dependencies [[com.github.clojure-lsp/clojure-lsp-server "2023.10.30-16.25.41-hotfix1"]])

0 comments on commit b1e2984

Please sign in to comment.