This repository was archived by the owner on Oct 26, 2023. It is now read-only.
File tree 9 files changed +24
-24
lines changed
9 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 285
285
(for ([id (in-set e)])
286
286
(set-add! ids (string->symbol (string-append (symbol->string (caddr jm))
287
287
(symbol->string id)))))))])
288
- ids)
288
+ ids)
Original file line number Diff line number Diff line change 57
57
58
58
(provide find-containing-paren
59
59
get-docs-for-tag
60
- id-to-tag)
60
+ id-to-tag)
Original file line number Diff line number Diff line change 14
14
;; Defined by LSP protocol
15
15
(define REQUEST-CANCELLED -32800 )
16
16
17
- (provide (all-defined-out ))
17
+ (provide (all-defined-out ))
Original file line number Diff line number Diff line change 75
75
(text-document/document-symbol id params)]
76
76
["textDocument/rename "
77
77
(text-document/rename id params)]
78
- ["textDocument/prepareRename "
78
+ ["textDocument/prepareRename "
79
79
(text-document/prepareRename id params)]
80
80
["textDocument/formatting "
81
81
(text-document/formatting! id params)]
117
117
'willSaveWaitUntil #f ))
118
118
(define renameProvider
119
119
(match capabilities
120
- [(hash-table ['textDocument
120
+ [(hash-table ['textDocument
121
121
(hash-table ['rename
122
122
(hash-table ['prepareSupport #t ])])])
123
123
(hasheq 'prepareProvider #t )]
135
135
'documentFormattingProvider #t
136
136
'documentRangeFormattingProvider #t
137
137
'documentOnTypeFormattingProvider (hasheq 'firstTriggerCharacter ") " 'moreTriggerCharacter (list "\n " "] " ))))
138
-
138
+
139
139
(define resp (success-response id (hasheq 'capabilities server-capabilities)))
140
140
(set! already-initialized? #t )
141
141
resp]
Original file line number Diff line number Diff line change 46
46
void?)]
47
47
[display-message/flush (->* (jsexpr?)
48
48
(output-port?)
49
- void?)]))
49
+ void?)]))
Original file line number Diff line number Diff line change 19
19
(channel-put out-ch doc)
20
20
(run #f #f ))
21
21
(sync (handle-evt in-ch
22
- (lambda (doc)
23
- (cond
24
- [ready? (send-doc! doc)]
25
- [else (run doc #f )])))
22
+ (lambda (doc)
23
+ (cond
24
+ [ready? (send-doc! doc)]
25
+ [else (run doc #f )])))
26
26
(handle-evt ready-ch
27
- (lambda (ignore)
28
- (cond
29
- [doc (send-doc! doc)]
30
- [else (run #f #t )])))))
27
+ (lambda (ignore)
28
+ (cond
29
+ [doc (send-doc! doc)]
30
+ [else (run #f #t )])))))
31
31
(run #f #t ))
32
32
33
33
(define (check in-ch ready-ch)
34
- (define (run)
34
+ (define (run)
35
35
(define doc (sync in-ch))
36
36
(do-check-and-stuff! doc)
37
37
(channel-put ready-ch #t )
47
47
(define server-th (thread (lambda () (check wait->check ready-ch))))
48
48
49
49
(define (try-queue-check src doc)
50
- (when (and (thread-running? waiter-th) (thread-running? server-th))
51
- (define txt (send (doc-text doc) get-text))
52
- (maybe-debug-file txt)
53
- (channel-put in-ch (list src txt doc))))
50
+ (when (and (thread-running? waiter-th) (thread-running? server-th))
51
+ (define txt (send (doc-text doc) get-text))
52
+ (maybe-debug-file txt)
53
+ (channel-put in-ch (list src txt doc))))
54
54
55
55
(provide try-queue-check)
Original file line number Diff line number Diff line change 46
46
(any/c)
47
47
jsexpr?)]
48
48
[diagnostics-message
49
- (string? list? . -> . jsexpr?)]))
49
+ (string? list? . -> . jsexpr?)]))
Original file line number Diff line number Diff line change 27
27
(define SymbolKind-Operator 25 )
28
28
(define SymbolKind-TypeParameter 26 )
29
29
30
- (provide (all-defined-out ))
30
+ (provide (all-defined-out ))
Original file line number Diff line number Diff line change 237
237
(define-values (src-dir file dir?)
238
238
(split-path path))
239
239
(define in (open-input-string (send doc-text get-text)))
240
-
240
+
241
241
(define ns (make-base-namespace))
242
242
(define-values (add-syntax done)
243
243
(make-traversal ns src-dir))
492
492
(Range
493
493
#:start (abs-pos->Pos doc-text (or (find-containing-paren pos (send doc-text get-text)) 0 ))
494
494
#:end (abs-pos->Pos doc-text pos))]))
495
-
495
+
496
496
(range-formatting!
497
497
id
498
498
(hash-set params
You can’t perform that action at this time.
0 commit comments