This repository was archived by the owner on Oct 26, 2023. It is now read-only.
File tree 2 files changed +11
-8
lines changed 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 6
6
racket/match
7
7
"json-util.rkt " )
8
8
9
+ (define-json-expander WorkspaceEdit
10
+ [changes any/c])
11
+ (define-json-expander TextEdit
12
+ [range any/c]
13
+ [newText string?])
14
+
9
15
(define-json-expander Diagnostic
10
16
[range any/c]
11
17
[severity (or/c 1 2 3 4 )]
Original file line number Diff line number Diff line change 52
52
[kind exact-positive-integer?]
53
53
[location any/c])
54
54
55
- (define-json-expander TextEdit
56
- [range any/c]
57
- [newText string?])
58
-
59
55
(define-json-expander InlayHint
60
56
; must a position `Pos`, defined in interfaces.rkt
61
57
[position any/c]
350
346
(cond [req? (json-null)]
351
347
[else
352
348
(define ranges (cons (start/end->Range doc-text left right) (get-bindings uri decl)))
353
- (hasheq 'changes
354
- (hasheq (string->symbol uri)
355
- (for/list ([range (in-list ranges)])
356
- (TextEdit #:range range #:newText new-name))))])]
349
+ (WorkspaceEdit
350
+ #:changes
351
+ (hasheq (string->symbol uri)
352
+ (for/list ([range (in-list ranges)])
353
+ (TextEdit #:range range #:newText new-name))))])]
357
354
[#f (json-null)]))
358
355
(success-response id result)]
359
356
[_
You can’t perform that action at this time.
0 commit comments