Skip to content

Commit 6e7ff55

Browse files
committed
Add textDocument/selectionRange LSP feature coercers.
1 parent 9c573cc commit 6e7ff55

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Add textDocument/selectionRange LSP feature coercers.
6+
57
## v1.12.0
68

79
- Add inlay-hint LSP feature coercers.

src/lsp4clj/coercer.clj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,13 @@
422422
:ranges ::folding-ranges)
423423
(s/conformer second)))
424424

425+
(s/def :selection-range/parent ::selection-range-response)
426+
427+
(s/def ::selection-range-response
428+
(s/keys :req-un [::range]
429+
:opt-un [:selection-range/parent]))
430+
(s/def ::selection-ranges-response (s/coll-of ::selection-range-response))
431+
425432
(def inlay-hint-kind-enum {:type 1 :parameter 2})
426433

427434
(s/def :inlay-hint/kind (s/and keyword?

0 commit comments

Comments
 (0)