Skip to content

Commit

Permalink
display version info to stderr when starting LSP mode
Browse files Browse the repository at this point in the history
  • Loading branch information
payneca committed Mar 8, 2022
1 parent faf2e72 commit 192318a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lsp.ss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
(keywords)
(progress)
(read)
(software-info)
(swish imports)
(tower-client)
)
Expand Down Expand Up @@ -587,7 +588,7 @@
(define (handle-request id method params state)
(match method
["initialize"
(trace-msg (json:make-object [method method] [params params]))
;;(trace-msg (json:make-object [method method] [params params]))
(let* ([root-uri (json:get params '(rootUri))]
[root-dir (uri->abs-path root-uri)]
[client-cap (json:get params '(capabilities))])
Expand Down Expand Up @@ -772,6 +773,7 @@
[`(EXIT ,_ ,_) (event-mgr:unregister)])))))
permanent 1000 worker)
))
(fprintf (trace-output-port) "~a\n" (versions->string))
(app:start)
(receive))
)

0 comments on commit 192318a

Please sign in to comment.