diff --git a/src/fennel-ls/dispatch.fnl b/src/fennel-ls/dispatch.fnl index 5295443..9531e9c 100644 --- a/src/fennel-ls/dispatch.fnl +++ b/src/fennel-ls/dispatch.fnl @@ -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. diff --git a/src/fennel-ls/utils.fnl b/src/fennel-ls/utils.fnl index 1de89d3..896e740 100644 --- a/src/fennel-ls/utils.fnl +++ b/src/fennel-ls/utils.fnl @@ -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)]