Skip to content

Commit 7c54fc8

Browse files
committed
Add coercer for executeCommand
1 parent 4b87cb1 commit 7c54fc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lsp4clj/coercer.clj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@
222222
(s/def ::command (s/keys :req-un [:command/title :command/command]
223223
:opt-un [:command/arguments]))
224224

225+
(s/def ::any-or-error
226+
(s/and (s/or :error ::response-error
227+
:any identity)
228+
(s/conformer second)))
229+
225230
(def show-message-type-enum
226231
{:error 1
227232
:warning 2

0 commit comments

Comments
 (0)