clean things up
This commit is contained in:
parent
d06e0dfbe8
commit
de7ca2a5c1
@ -4,7 +4,8 @@ to a given LSP request from the client.
|
||||
|
||||
In general, this involves:
|
||||
* determining the type of the message
|
||||
* calling the appropriate handler"
|
||||
* calling the appropriate handler in the :fennel-ls.handlers module.
|
||||
"
|
||||
|
||||
(local handlers (require :fennel-ls.handlers))
|
||||
(local message (require :fennel-ls.message))
|
||||
@ -30,7 +31,7 @@ In general, this involves:
|
||||
|
||||
(λ handle-bad-response [self send id err]
|
||||
;; Handle a message indicating an error. Right now, it just crashes the server.
|
||||
(error (.. "oopsie: " err.code)))
|
||||
(error (.. "Client sent fennel-ls an error: " err.code)))
|
||||
|
||||
(λ handle-notification [self send method ?params]
|
||||
;; Call the appropriate notification handler.
|
||||
|
||||
@ -171,7 +171,6 @@ WARNING: this is only used in the test code, not in the real language server"
|
||||
(= (type val) typ))
|
||||
|
||||
(λ uniq-by [list key-fn]
|
||||
"I know the big O of this is bad, but we'll come back to it if it's a performance problem"
|
||||
(let [result []
|
||||
seen {}]
|
||||
(each [_ new-item (ipairs list)]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user